HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3032Define the margins of h1 elements in section elements to match h2-h6, like with the font-size. (credit: sp)2009-04-29 22:25
@@ -72595,20 +72595,38 @@ h4 { margin-top: 1.33em; margin-bottom; 1.33em; }
 h5 { margin-top: 1.67em; margin-bottom; 1.67em; }
 h6 { margin-top: 2.33em; margin-bottom; 2.33em; }
 
 dd { margin-left: 40px; } /* <span>LTR-specific</span>: use 'margin-right' for rtl elements */
 dir, menu, ol, ul { padding-left: 40px; } /* <span>LTR-specific</span>: use 'padding-right' for rtl elements */
 blockquote, figure { margin-left: 40px; margin-right: 40px; }
 
 table { border-spacing: 2px; border-collapse: separate; }
 td, th { padding: 1px; }</pre>
 
+  <p>The <code>article</code>, <code>aside</code>, <code>nav</code>,
+  and <code>section</code> elements are expected to affect the margins
+  of <code>h1</code> elements, based on the nesting depth. If <var
+  title="">x</var> is a selector that matches elements that are either
+  <code>article</code>, <code>aside</code>, <code>nav</code>, or
+  <code>section</code> elements, then the following rules capture what
+  is expected:</p>
+
+  <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
+
+<var title="">x</var> h1 { margin-top: 0.83em; margin-bottom: 0.83em; }
+<var title="">x</var> <var title="">x</var> h1 { margin-top: 1.00em; margin-bottom: 1.00em; }
+<var title="">x</var> <var title="">x</var> <var title="">x</var> h1 { margin-top: 1.33em; margin-bottom: 1.33em; }
+<var title="">x</var> <var title="">x</var> <var title="">x</var> <var title="">x</var> h1 { margin-top: 1.67em; margin-bottom: 1.67em; }
+<var title="">x</var> <var title="">x</var> <var title="">x</var> <var title="">x</var> <var title="">x</var> h1 { margin-top: 2.33em; margin-bottom: 2.33em; }</pre>
+
+  <hr>
+
   <p>For each property in the table below, given a <code>body</code>
   element, the first attribute that exists <span>maps to the pixel
   length property</span> on the <code>body</code> element. If none of
   the attributes for a property are found, or if the value of the
   attribute that was found cannot be parsed successfully, then a
   default value of 8px is expected to be used for that property
   instead.</p>
 
   <!-- XXX so, uh, about the cross-site-styling hole below... -->
 
@@ -72978,29 +72996,27 @@ table[frames=border] > tfoot > tr > td, table[frames=border] > tfoot > tr > th {
   <hr>
 
   <p>The initial value for the 'color' property is expected to be
   black. The initial value for the 'background-color' property is
   expected to be 'transparent'. The canvas's background is expected to
   be white.</p>
 
   <hr>
 
   <p>The <code>article</code>, <code>aside</code>, <code>nav</code>,
-  and <code>section</code> elements are expected to affect the styling
-  of <code>h1</code> elements, based on the nesting depth. If <var
-  title="">x</var> is a selector that matches elements that are either
-  <code>article</code>, <code>aside</code>, <code>nav</code>, or
-  <code>section</code> elements, then the following rules capture what
-  is expected:</p>
+  and <code>section</code> elements are expected to affect the font
+  size of <code>h1</code> elements, based on the nesting depth. If
+  <var title="">x</var> is a selector that matches elements that are
+  either <code>article</code>, <code>aside</code>, <code>nav</code>,
+  or <code>section</code> elements, then the following rules capture
+  what is expected:</p>
 
-  <!-- XXX this is better than http://damowmow.com/temp/sectioning.css
-           but it's still not optimal... -->
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
 <var title="">x</var> h1 { font-size: 1.50em; }
 <var title="">x</var> <var title="">x</var> h1 { font-size: 1.17em; }
 <var title="">x</var> <var title="">x</var> <var title="">x</var> h1 { font-size: 1.00em; }
 <var title="">x</var> <var title="">x</var> <var title="">x</var> <var title="">x</var> h1 { font-size: 0.83em; }
 <var title="">x</var> <var title="">x</var> <var title="">x</var> <var title="">x</var> <var title="">x</var> h1 { font-size: 0.67em; }</pre>
 
   <hr>
 

|