Permalink
Browse files

[] (0) A variety of rendering section fixes: hide noscript; indent <d…

…d>; redefine (poorly) how we do alignment; reset text-indent on form controls.

git-svn-id: http://svn.whatwg.org/webapps@2777 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent fda3fb1 commit d8350f285bf9e2933b5b4ee69b6478121b80e7f7 @Hixie Hixie committed Feb 11, 2009
Showing with 47 additions and 36 deletions.
  1. +23 −18 index
  2. +24 −18 source
View
41 index
@@ -56176,6 +56176,10 @@ rt { display: ruby-text; }
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>
@@ -56201,8 +56205,8 @@ 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; }
-dl &gt; 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 @@ tfoot[valign=baseline], tr[valign=baseline], td[valign=baseline], th[valign=base
"<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 @@ tfoot[valign=baseline], tr[valign=baseline], td[valign=baseline], th[valign=base
<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 @@ tfoot[valign=baseline], tr[valign=baseline], td[valign=baseline], th[valign=base
<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 @@ tfoot[valign=baseline], tr[valign=baseline], td[valign=baseline], th[valign=base
<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,7 +56917,13 @@ table[rules=all] &gt; tfoot &gt; tr &gt; td, table[rules=all] &gt; tfoot &gt; tr
<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>
View
42 source
@@ -61468,6 +61468,10 @@ rt { display: ruby-text; }
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>
@@ -61493,8 +61497,8 @@ 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; }
-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 @@ tfoot[valign=baseline], tr[valign=baseline], td[valign=baseline], th[valign=base
"<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 @@ tfoot[valign=baseline], tr[valign=baseline], td[valign=baseline], th[valign=base
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 @@ tfoot[valign=baseline], tr[valign=baseline], td[valign=baseline], th[valign=base
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 @@ tfoot[valign=baseline], tr[valign=baseline], td[valign=baseline], th[valign=base
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,7 +62318,13 @@ table[rules=all] > tfoot > tr > td, table[rules=all] > tfoot > tr > th {
<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>

0 comments on commit d8350f2

Please sign in to comment.