Skip to content

Commit

Permalink
[giow] (2) Try to define how <legend> renders more accurately.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10771

git-svn-id: http://svn.whatwg.org/webapps@5583 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 5, 2010
1 parent 047c54a commit 20d0e02
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 46 deletions.
36 changes: 21 additions & 15 deletions complete.html
Expand Up @@ -85543,21 +85543,27 @@ <h4 id=the-fieldset-element-0><span class=secno>14.2.9 </span>The <code><a href=
<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
Expand Down
36 changes: 21 additions & 15 deletions index
Expand Up @@ -81457,21 +81457,27 @@ fieldset {
<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
Expand Down
41 changes: 25 additions & 16 deletions source
Expand Up @@ -97617,22 +97617,31 @@ fieldset {
<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>
Expand Down

0 comments on commit 20d0e02

Please sign in to comment.