[html5] r2777 - [] (0) A variety of rendering section fixes: hide noscript; indent <dd>; redefin [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Feb 10 18:54:47 PST 2009


Author: ianh
Date: 2009-02-10 18:54:46 -0800 (Tue, 10 Feb 2009)
New Revision: 2777

Modified:
   index
   source
Log:
[] (0) A variety of rendering section fixes: hide noscript; indent <dd>; redefine (poorly) how we do alignment; reset text-indent on form controls.

Modified: index
===================================================================
--- index	2009-02-11 00:20:51 UTC (rev 2776)
+++ index	2009-02-11 02:54:46 UTC (rev 2777)
@@ -56176,7 +56176,11 @@
   contents were a single U+000A LINE FEED (LF) character and its
   'white-space' property was 'pre'.</p>
 
+  <p>The user agent is expected to hide <code><a href=#the-noscript-element>noscript</a></code> elements
+  for whom <a href=#concept-n-noscript title=concept-n-noscript>scripting is
+  disabled</a>, irrespective of CSS rules.</p>
 
+
   <h4 id=margins-and-padding><span class=secno>10.2.3 </span>Margins and padding</h4>
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
@@ -56201,8 +56205,8 @@
 h5 { margin-top: 1.67em; margin-bottom; 1.67em; }
 h6 { margin-top: 2.33em; margin-bottom; 2.33em; }
 
-dl > dd { margin-left: 40px; } /* margin-right, for rtl elements */
-dir, menu, ol, ul { padding-left: 40px; } /* margin-right, for rtl elements */
+dd { margin-left: 40px; } /* margin-right, for rtl elements */
+dir, menu, ol, ul { padding-left: 40px; } /* padding-right, for rtl elements */
 blockquote, figure { margin-left: 40px; margin-right: 40px; }
 
 table { border-spacing: 2px; border-collapse: separate; }
@@ -56396,9 +56400,7 @@
   "<code title="">center</code>", are expected to center text within
   themselves, as if they had their 'text-align' property set to
   'center' in a <a href=#presentational-hints title="presentational hints">presentational
-  hint</a>, and to center blocks and tables within them, as if
-  their descendants had their 'margin-left' and 'margin-right'
-  properties set to 'auto' in <a href=#presentational-hints>presentational hints</a>.</p>
+  hint</a>, and to <a href=#align-descendents>align descendents</a> to the center.</p>
 
   <p>The <code><a href=#the-div-element>div</a></code>, <code><a href=#the-caption-element>caption</a></code>, <code><a href=#the-thead-element>thead</a></code>,
   <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-tfoot-element>tfoot</a></code>, <code><a href=#the-tr-element>tr</a></code>,
@@ -56407,9 +56409,7 @@
   <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">left</code>", are expected to left-align text within
   themselves, as if they had their 'text-align' property set to 'left'
   in a <a href=#presentational-hints title="presentational hints">presentational hint</a>,
-  and to left-align blocks and tables within them, as if their
-  descendants had their 'margin-right' property set to 'auto' in
-  <a href=#presentational-hints>presentational hints</a>.</p>
+  and to <a href=#align-descendents>align descendents</a> to the left.</p>
 
   <p>The <code><a href=#the-div-element>div</a></code>, <code><a href=#the-caption-element>caption</a></code>, <code><a href=#the-thead-element>thead</a></code>,
   <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-tfoot-element>tfoot</a></code>, <code><a href=#the-tr-element>tr</a></code>,
@@ -56418,9 +56418,7 @@
   <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">right</code>", are expected to right-align text within
   themselves, as if they had their 'text-align' property set to
   'right' in a <a href=#presentational-hints title="presentational hints">presentational
-  hint</a>, and to right-align blocks and tables within them, as if
-  their descendants had their 'margin-left' property set to 'auto' in
-  <a href=#presentational-hints>presentational hints</a>.</p>
+  hint</a>, and to <a href=#align-descendents>align descendents</a> to the right.</p>
 
   <p>The <code><a href=#the-div-element>div</a></code>, <code><a href=#the-caption-element>caption</a></code>, <code><a href=#the-thead-element>thead</a></code>,
   <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-tfoot-element>tfoot</a></code>, <code><a href=#the-tr-element>tr</a></code>,
@@ -56429,13 +56427,14 @@
   <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the string "<code title="">justify</code>", are expected to full-justify text within
   themselves, as if they had their 'text-align' property set to
   'justify' in a <a href=#presentational-hints title="presentational hints">presentational
-  hint</a>, and to left-align blocks and tables within them, as if
-  their descendants had their 'margin-right' property set to 'auto' in
-  <a href=#presentational-hints>presentational hints</a>.</p>
+  hint</a>, and to <a href=#align-descendents>align descendents</a> to the left.</p>
 
-  <p>In all these cases, the effect on descendants is expected to only
-  extend to descendants that do not themselves have an applicable
-  <code title=attr-align>align</code> attribute.</p>
+  <p>When a user agent is to <dfn id=align-descendents>align descendents</dfn> of a node,
+  the user agent is expected to align only those descendents that have
+  both their 'margin-left' and 'margin-right' properties computing to
+  a value other than 'auto', that are over-constrained and that have
+  one of those two margins with a used value forced to a greater
+  value, and that do not themselves have an applicable <code title=attr-align>align</code> attribute.</p>
 
 
   <h4 id=fonts-and-colors><span class=secno>10.2.5 </span>Fonts and colors</h4>
@@ -56918,8 +56917,14 @@
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
 
-table { text-indent: initial; }</pre>
+table, input, select, option, optgroup, button {
+  text-indent: initial;
+}</pre>
 
+  <!-- arguably, the form controls' 'text-indent' lines should be in
+  the sections below instead of here, but that would be far more
+  complicated than this -->
+
   <p>In <a href=#quirks-mode>quirks mode</a>, the following rules are also
   expected to apply:</p>
 

Modified: source
===================================================================
--- source	2009-02-11 00:20:51 UTC (rev 2776)
+++ source	2009-02-11 02:54:46 UTC (rev 2777)
@@ -61468,7 +61468,11 @@
   contents were a single U+000A LINE FEED (LF) character and its
   'white-space' property was 'pre'.</p>
 
+  <p>The user agent is expected to hide <code>noscript</code> elements
+  for whom <span title="concept-n-noscript">scripting is
+  disabled</span>, irrespective of CSS rules.</p>
 
+
   <h4>Margins and padding</h4>
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
@@ -61493,8 +61497,8 @@
 h5 { margin-top: 1.67em; margin-bottom; 1.67em; }
 h6 { margin-top: 2.33em; margin-bottom; 2.33em; }
 
-dl > dd { margin-left: 40px; } /* margin-right, for rtl elements */
-dir, menu, ol, ul { padding-left: 40px; } /* margin-right, for rtl elements */
+dd { margin-left: 40px; } /* margin-right, for rtl elements */
+dir, menu, ol, ul { padding-left: 40px; } /* padding-right, for rtl elements */
 blockquote, figure { margin-left: 40px; margin-right: 40px; }
 
 table { border-spacing: 2px; border-collapse: separate; }
@@ -61743,9 +61747,7 @@
   "<code title="">center</code>", are expected to center text within
   themselves, as if they had their 'text-align' property set to
   'center' in a <span title="presentational hints">presentational
-  hint</span>, and to center blocks and tables within them, as if
-  their descendants had their 'margin-left' and 'margin-right'
-  properties set to 'auto' in <span>presentational hints</span>.</p>
+  hint</span>, and to <span>align descendents</span> to the center.</p>
 
   <p>The <code>div</code>, <code>caption</code>, <code>thead</code>,
   <code>tbody</code>, <code>tfoot</code>, <code>tr</code>,
@@ -61755,9 +61757,7 @@
   title="">left</code>", are expected to left-align text within
   themselves, as if they had their 'text-align' property set to 'left'
   in a <span title="presentational hints">presentational hint</span>,
-  and to left-align blocks and tables within them, as if their
-  descendants had their 'margin-right' property set to 'auto' in
-  <span>presentational hints</span>.</p>
+  and to <span>align descendents</span> to the left.</p>
 
   <p>The <code>div</code>, <code>caption</code>, <code>thead</code>,
   <code>tbody</code>, <code>tfoot</code>, <code>tr</code>,
@@ -61767,9 +61767,7 @@
   title="">right</code>", are expected to right-align text within
   themselves, as if they had their 'text-align' property set to
   'right' in a <span title="presentational hints">presentational
-  hint</span>, and to right-align blocks and tables within them, as if
-  their descendants had their 'margin-left' property set to 'auto' in
-  <span>presentational hints</span>.</p>
+  hint</span>, and to <span>align descendents</span> to the right.</p>
 
   <p>The <code>div</code>, <code>caption</code>, <code>thead</code>,
   <code>tbody</code>, <code>tfoot</code>, <code>tr</code>,
@@ -61779,13 +61777,15 @@
   title="">justify</code>", are expected to full-justify text within
   themselves, as if they had their 'text-align' property set to
   'justify' in a <span title="presentational hints">presentational
-  hint</span>, and to left-align blocks and tables within them, as if
-  their descendants had their 'margin-right' property set to 'auto' in
-  <span>presentational hints</span>.</p>
+  hint</span>, and to <span>align descendents</span> to the left.</p>
 
-  <p>In all these cases, the effect on descendants is expected to only
-  extend to descendants that do not themselves have an applicable
-  <code title="attr-align">align</code> attribute.</p>
+  <p>When a user agent is to <dfn>align descendents</dfn> of a node,
+  the user agent is expected to align only those descendents that have
+  both their 'margin-left' and 'margin-right' properties computing to
+  a value other than 'auto', that are over-constrained and that have
+  one of those two margins with a used value forced to a greater
+  value, and that do not themselves have an applicable <code
+  title="attr-align">align</code> attribute.</p>
 
 
   <h4>Fonts and colors</h4>
@@ -62318,8 +62318,14 @@
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
 
-table { text-indent: initial; }</pre>
+table, input, select, option, optgroup, button {
+  text-indent: initial;
+}</pre>
 
+  <!-- arguably, the form controls' 'text-indent' lines should be in
+  the sections below instead of here, but that would be far more
+  complicated than this -->
+
   <p>In <span>quirks mode</span>, the following rules are also
   expected to apply:</p>
 




More information about the Commit-Watchers mailing list