Skip to content

Commit

Permalink
[e] (0) Add a note about keeping the alignment right for <select>
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10820

git-svn-id: http://svn.whatwg.org/webapps@5589 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 7, 2010
1 parent e00e236 commit 9a025be
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 19 deletions.
17 changes: 11 additions & 6 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -87337,19 +87337,19 @@ <h4 id=the-select-element-0><span class=secno>14.4.14 </span>The <code><a href=#
element's <code><a href=#the-optgroup-element>optgroup</a></code> element children providing headers
for groups of options where applicable.</p>

<p>The <dfn id="width-of-the-select's-labels">width of the <code>select</code>'s labels</dfn> is the
wider of the width necessary to render the widest
<code><a href=#the-optgroup-element>optgroup</a></code>, and the width necessary to render the widest
<code><a href=#the-option-element>option</a></code> element in the element's <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> (including
its indent, if any).</p>

<p>An <code><a href=#the-optgroup-element>optgroup</a></code> element is expected to be rendered by
displaying the element's <code title=attr-optgroup-label><a href=#attr-optgroup-label>label</a></code> attribute.</p>

<p>An <code><a href=#the-option-element>option</a></code> element is expected to be rendered by
displaying the element's <code title=concept-option-label><a href=#concept-option-label>label</a></code>, indented under its
<code><a href=#the-optgroup-element>optgroup</a></code> element if it has one.</p>

<p>The <dfn id="width-of-the-select's-labels">width of the <code>select</code>'s labels</dfn> is the
wider of the width necessary to render the widest
<code><a href=#the-optgroup-element>optgroup</a></code>, and the width necessary to render the widest
<code><a href=#the-option-element>option</a></code> element in the element's <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> (including
its indent, if any).</p>

<p>If a <code><a href=#the-select-element>select</a></code> element contains a <a href=#placeholder-label-option>placeholder
label option</a>, the user agent is expected to render that
<code><a href=#the-option-element>option</a></code> in a manner that conveys that it is a label,
Expand All @@ -87360,6 +87360,11 @@ <h4 id=the-select-element-0><span class=secno>14.4.14 </span>The <code><a href=#
control is expected to be displayed in a fashion that indicates that
no valid option is currently selected.</p>

<p>User agents are expected to consistently render the labels in a
<code><a href=#the-select-element>select</a></code>, in particular ensuring that any left-to-right
or right-to-left alignment is consistent whether the label is being
displayed as part of the page or in a menu control.</p>

</div>


Expand Down
17 changes: 11 additions & 6 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -83251,19 +83251,19 @@ select { binding: <i title="">select</i>; }</pre>
element's <code><a href=#the-optgroup-element>optgroup</a></code> element children providing headers
for groups of options where applicable.</p>

<p>The <dfn id="width-of-the-select's-labels">width of the <code>select</code>'s labels</dfn> is the
wider of the width necessary to render the widest
<code><a href=#the-optgroup-element>optgroup</a></code>, and the width necessary to render the widest
<code><a href=#the-option-element>option</a></code> element in the element's <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> (including
its indent, if any).</p>

<p>An <code><a href=#the-optgroup-element>optgroup</a></code> element is expected to be rendered by
displaying the element's <code title=attr-optgroup-label><a href=#attr-optgroup-label>label</a></code> attribute.</p>

<p>An <code><a href=#the-option-element>option</a></code> element is expected to be rendered by
displaying the element's <code title=concept-option-label><a href=#concept-option-label>label</a></code>, indented under its
<code><a href=#the-optgroup-element>optgroup</a></code> element if it has one.</p>

<p>The <dfn id="width-of-the-select's-labels">width of the <code>select</code>'s labels</dfn> is the
wider of the width necessary to render the widest
<code><a href=#the-optgroup-element>optgroup</a></code>, and the width necessary to render the widest
<code><a href=#the-option-element>option</a></code> element in the element's <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> (including
its indent, if any).</p>

<p>If a <code><a href=#the-select-element>select</a></code> element contains a <a href=#placeholder-label-option>placeholder
label option</a>, the user agent is expected to render that
<code><a href=#the-option-element>option</a></code> in a manner that conveys that it is a label,
Expand All @@ -83274,6 +83274,11 @@ select { binding: <i title="">select</i>; }</pre>
control is expected to be displayed in a fashion that indicates that
no valid option is currently selected.</p>

<p>User agents are expected to consistently render the labels in a
<code><a href=#the-select-element>select</a></code>, in particular ensuring that any left-to-right
or right-to-left alignment is consistent whether the label is being
displayed as part of the page or in a menu control.</p>

</div>


Expand Down
19 changes: 12 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -99712,13 +99712,6 @@ select { binding: <i title="">select</i>; }</pre>
element's <code>optgroup</code> element children providing headers
for groups of options where applicable.</p>

<p>The <dfn>width of the <code>select</code>'s labels</dfn> is the
wider of the width necessary to render the widest
<code>optgroup</code>, and the width necessary to render the widest
<code>option</code> element in the element's <span
title="concept-select-option-list">list of options</span> (including
its indent, if any).</p>

<p>An <code>optgroup</code> element is expected to be rendered by
displaying the element's <code
title="attr-optgroup-label">label</code> attribute.</p>
Expand All @@ -99728,6 +99721,13 @@ select { binding: <i title="">select</i>; }</pre>
title="concept-option-label">label</code>, indented under its
<code>optgroup</code> element if it has one.</p>

<p>The <dfn>width of the <code>select</code>'s labels</dfn> is the
wider of the width necessary to render the widest
<code>optgroup</code>, and the width necessary to render the widest
<code>option</code> element in the element's <span
title="concept-select-option-list">list of options</span> (including
its indent, if any).</p>

<p>If a <code>select</code> element contains a <span>placeholder
label option</span>, the user agent is expected to render that
<code>option</code> in a manner that conveys that it is a label,
Expand All @@ -99739,6 +99739,11 @@ select { binding: <i title="">select</i>; }</pre>
control is expected to be displayed in a fashion that indicates that
no valid option is currently selected.</p>

<p>User agents are expected to consistently render the labels in a
<code>select</code>, in particular ensuring that any left-to-right
or right-to-left alignment is consistent whether the label is being
displayed as part of the page or in a menu control.</p>

</div>


Expand Down

0 comments on commit 9a025be

Please sign in to comment.