<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19895</bug_id>
          
          <creation_ts>2012-11-07 19:05:29 +0000</creation_ts>
          <short_desc>mods for main stylesheet speccing</short_desc>
          <delta_ts>2013-01-24 15:11:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>maincontent element</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="steve faulkner">faulkner.steve</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>faulkner.steve</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78001</commentid>
    <comment_count>0</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2012-11-07 19:05:29 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Nov/0054.html

Hi

https://dvcs.w3.org/hg/html-extensions/raw-file/tip/maincontent/index.html  
says

[[
The User Agent style sheet should include the following style rule for the  
main element:
   main {
    display:block;
    }
]]

I think this is a bit inconsistent with the HTML spec.

First, it should be clear that this should hook in to the HTML spec&apos;s  
Rendering section, because this section has special rules when it comes to  
conformance classes and the use of words with requirements, as explained  
at the start of the section.

http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#rendering

This section also has this requirement:

[[
The CSS rules given in these subsections are, except where otherwise  
specified, expected to be used as part of the user-agent level style sheet  
defaults for all documents that contain HTML elements.
]]

I propose the following concrete text:

[[
=== Rendering ===

This section is to be treated as a subsection of HTML&apos;s Rendering section  
for the purpose of terminology, conformance classes and requirements.  
[HTML]

CSS:
... the style sheet ...
]]

Finally, I think the style sheet needs some tweaks. If we want &lt;main&gt; to  
have the same styles as &lt;aside&gt; (except for the effect &lt;aside&gt; has on  
&lt;h1&gt;, since &lt;main&gt; is not a sectioning element), I think the style sheet  
should be:

@namespace url(http://www.w3.org/1999/xhtml);
main { unicode-bidi: isolate; display: block; }

Replace this rule in the HTML spec:

:matches([dir=ltr i], [dir=rtl i], [dir=auto  
i]):not(address):not(blockquote
):not(center):not(div):not(figure):not(figcaption):not(footer):not(form
):not(header):not(hr):not(legend):not(listing):not(p):not(plaintext):not(pre
):not(summary):not(xmp):not(article):not(aside):not(h1):not(h2):not(h3):not(h4
):not(h5):not(h6):not(hgroup):not(nav):not(section):not(table):not(caption
):not(colgroup):not(col):not(thead):not(tbody):not(tfoot):not(tr):not(td
):not(th):not(dir):not(dd):not(dl):not(dt):not(menu):not(ol):not(ul):not(li)  
{
   unicode-bidi: embed;
}

with:

:matches([dir=ltr i], [dir=rtl i], [dir=auto  
i]):not(address):not(blockquote
):not(center):not(div):not(figure):not(figcaption):not(footer):not(form
):not(header):not(hr):not(legend):not(listing):not(p):not(plaintext):not(pre
):not(summary):not(xmp):not(article):not(aside):not(main):not(h1):not(h2):not(h3):not(h4
):not(h5):not(h6):not(hgroup):not(nav):not(section):not(table):not(caption
):not(colgroup):not(col):not(thead):not(tbody):not(tfoot):not(tr):not(td
):not(th):not(dir):not(dd):not(dl):not(dt):not(menu):not(ol):not(ul):not(li)  
{
   unicode-bidi: embed;
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82085</commentid>
    <comment_count>1</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-01-24 15:11:48 +0000</bug_when>
    <thetext>added to spec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>