[html5] r5583 - [giow] (2) Try to define how <legend> renders more accurately. Fixing http://www [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Oct 5 15:14:30 PDT 2010
Author: ianh
Date: 2010-10-05 15:14:28 -0700 (Tue, 05 Oct 2010)
New Revision: 5583
Modified:
complete.html
index
source
Log:
[giow] (2) Try to define how <legend> renders more accurately.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10771
Modified: complete.html
===================================================================
--- complete.html 2010-10-05 21:48:11 UTC (rev 5582)
+++ complete.html 2010-10-05 22:14:28 UTC (rev 5583)
@@ -85543,22 +85543,28 @@
<p>The <code><a href=#the-fieldset-element>fieldset</a></code> element is expected to establish a new
block formatting context.</p>
- <p>The first <code><a href=#the-legend-element>legend</a></code> element child of a
- <code><a href=#the-fieldset-element>fieldset</a></code> element, if any, and if it has a computed
- 'display' value of 'block', and if it is not out-of-flow (e.g. not
- absolutely positioned or floated), is expected to be rendered over
- the top border edge of the <code><a href=#the-fieldset-element>fieldset</a></code> element. If the
- <code><a href=#the-legend-element>legend</a></code> element in question has an <code title=attr-legend-align><a href=#attr-legend-align>align</a></code> attribute, and its value is
- an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for one of the strings
- in the first column of the following table, then the
- <code><a href=#the-legend-element>legend</a></code> is expected to be rendered horizontally aligned
- over the border edge in the position given in the corresponding cell
- on the same row in the second column. If the attribute is absent or
- has a value that doesn't match any of the cases in the table, then
- the position is expected to be on the right if the 'direction'
- property on this element has a computed value of 'rtl', and on the
- left otherwise.</p>
+ <p>If the <code><a href=#the-fieldset-element>fieldset</a></code> element has a child that matches the
+ conditions in the list below, then the first such child is the
+ <code><a href=#the-fieldset-element>fieldset</a></code> element's <dfn id=rendered-legend>rendered legend</dfn>:</p>
+ <ul class=brief><li>The child is a <code><a href=#the-legend-element>legend</a></code> element.</li>
+
+ <li>The child is not out-of-flow (e.g. not absolutely positioned or floated).</li>
+
+ </ul><p>A <code><a href=#the-fieldset-element>fieldset</a></code> element's <a href=#rendered-legend>rendered legend</a>,
+ if any, is expected to be rendered over the top border edge of the
+ <code><a href=#the-fieldset-element>fieldset</a></code> element. If the <code><a href=#the-legend-element>legend</a></code> element in
+ question has an <code title=attr-legend-align><a href=#attr-legend-align>align</a></code>
+ attribute, and its value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
+ match for one of the strings in the first column of the following
+ table, then the <code><a href=#the-legend-element>legend</a></code> is expected to be rendered
+ horizontally aligned over the border edge in the position given in
+ the corresponding cell on the same row in the second column. If the
+ attribute is absent or has a value that doesn't match any of the
+ cases in the table, then the position is expected to be on the right
+ if the 'direction' property on this element has a computed value of
+ 'rtl', and on the left otherwise.</p>
+
<table><thead><tr><th>Attribute value
<th>Alignment position
<tbody><tr><td><code title="">left</code>
Modified: index
===================================================================
--- index 2010-10-05 21:48:11 UTC (rev 5582)
+++ index 2010-10-05 22:14:28 UTC (rev 5583)
@@ -81457,22 +81457,28 @@
<p>The <code><a href=#the-fieldset-element>fieldset</a></code> element is expected to establish a new
block formatting context.</p>
- <p>The first <code><a href=#the-legend-element>legend</a></code> element child of a
- <code><a href=#the-fieldset-element>fieldset</a></code> element, if any, and if it has a computed
- 'display' value of 'block', and if it is not out-of-flow (e.g. not
- absolutely positioned or floated), is expected to be rendered over
- the top border edge of the <code><a href=#the-fieldset-element>fieldset</a></code> element. If the
- <code><a href=#the-legend-element>legend</a></code> element in question has an <code title=attr-legend-align><a href=#attr-legend-align>align</a></code> attribute, and its value is
- an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for one of the strings
- in the first column of the following table, then the
- <code><a href=#the-legend-element>legend</a></code> is expected to be rendered horizontally aligned
- over the border edge in the position given in the corresponding cell
- on the same row in the second column. If the attribute is absent or
- has a value that doesn't match any of the cases in the table, then
- the position is expected to be on the right if the 'direction'
- property on this element has a computed value of 'rtl', and on the
- left otherwise.</p>
+ <p>If the <code><a href=#the-fieldset-element>fieldset</a></code> element has a child that matches the
+ conditions in the list below, then the first such child is the
+ <code><a href=#the-fieldset-element>fieldset</a></code> element's <dfn id=rendered-legend>rendered legend</dfn>:</p>
+ <ul class=brief><li>The child is a <code><a href=#the-legend-element>legend</a></code> element.</li>
+
+ <li>The child is not out-of-flow (e.g. not absolutely positioned or floated).</li>
+
+ </ul><p>A <code><a href=#the-fieldset-element>fieldset</a></code> element's <a href=#rendered-legend>rendered legend</a>,
+ if any, is expected to be rendered over the top border edge of the
+ <code><a href=#the-fieldset-element>fieldset</a></code> element. If the <code><a href=#the-legend-element>legend</a></code> element in
+ question has an <code title=attr-legend-align><a href=#attr-legend-align>align</a></code>
+ attribute, and its value is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
+ match for one of the strings in the first column of the following
+ table, then the <code><a href=#the-legend-element>legend</a></code> is expected to be rendered
+ horizontally aligned over the border edge in the position given in
+ the corresponding cell on the same row in the second column. If the
+ attribute is absent or has a value that doesn't match any of the
+ cases in the table, then the position is expected to be on the right
+ if the 'direction' property on this element has a computed value of
+ 'rtl', and on the left otherwise.</p>
+
<table><thead><tr><th>Attribute value
<th>Alignment position
<tbody><tr><td><code title="">left</code>
Modified: source
===================================================================
--- source 2010-10-05 21:48:11 UTC (rev 5582)
+++ source 2010-10-05 22:14:28 UTC (rev 5583)
@@ -97617,23 +97617,32 @@
<p>The <code>fieldset</code> element is expected to establish a new
block formatting context.</p>
- <p>The first <code>legend</code> element child of a
- <code>fieldset</code> element, if any, and if it has a computed
- 'display' value of 'block', and if it is not out-of-flow (e.g. not
- absolutely positioned or floated), is expected to be rendered over
- the top border edge of the <code>fieldset</code> element. If the
- <code>legend</code> element in question has an <code
- title="attr-legend-align">align</code> attribute, and its value is
- an <span>ASCII case-insensitive</span> match for one of the strings
- in the first column of the following table, then the
- <code>legend</code> is expected to be rendered horizontally aligned
- over the border edge in the position given in the corresponding cell
- on the same row in the second column. If the attribute is absent or
- has a value that doesn't match any of the cases in the table, then
- the position is expected to be on the right if the 'direction'
- property on this element has a computed value of 'rtl', and on the
- left otherwise.</p>
+ <p>If the <code>fieldset</code> element has a child that matches the
+ conditions in the list below, then the first such child is the
+ <code>fieldset</code> element's <dfn>rendered legend</dfn>:</p>
+ <ul class="brief">
+
+ <li>The child is a <code>legend</code> element.</li>
+
+ <li>The child is not out-of-flow (e.g. not absolutely positioned or floated).</li>
+
+ </ul>
+
+ <p>A <code>fieldset</code> element's <span>rendered legend</span>,
+ if any, is expected to be rendered over the top border edge of the
+ <code>fieldset</code> element. If the <code>legend</code> element in
+ question has an <code title="attr-legend-align">align</code>
+ attribute, and its value is an <span>ASCII case-insensitive</span>
+ match for one of the strings in the first column of the following
+ table, then the <code>legend</code> is expected to be rendered
+ horizontally aligned over the border edge in the position given in
+ the corresponding cell on the same row in the second column. If the
+ attribute is absent or has a value that doesn't match any of the
+ cases in the table, then the position is expected to be on the right
+ if the 'direction' property on this element has a computed value of
+ 'rtl', and on the left otherwise.</p>
+
<table>
<thead>
<tr>
More information about the Commit-Watchers
mailing list