- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 13 Apr 2010 00:27:07 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv21180 Modified Files: Overview.html Log Message: define 'display size' for <select> so that we don't have to keep parsing size='' each time we need it. (whatwg r5009) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4025 retrieving revision 1.4026 diff -u -d -r1.4025 -r1.4026 --- Overview.html 13 Apr 2010 00:08:29 -0000 1.4025 +++ Overview.html 13 Apr 2010 00:27:02 -0000 1.4026 @@ -31607,6 +31607,15 @@ then the <code title="attr-input-size"><a href="#attr-input-size">size</a></code> attribute's default value is 1.<div class="impl"> + <p>The <dfn id="concept-select-size" title="concept-select-size">display size</dfn> of a + <code><a href="#the-select-element">select</a></code> element is the result of applying the + <a href="#rules-for-parsing-non-negative-integers">rules for parsing non-negative integers</a> to the value of + element's <code title="attr-input-size"><a href="#attr-input-size">size</a></code> attribute, if it + has one and parsing it is successful. If applying those rules to the + attribute's value is not successful, or if the <code title="attr-input-size"><a href="#attr-input-size">size</a></code> attribute is absent, the + element's <a href="#concept-select-size" title="concept-select-size">display size</a> is + the default value of the attribute.</p> + <p>If the <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code> attribute is absent, and the element is not <a href="#concept-fe-disabled" title="concept-fe-disabled">disabled</a>, then the user agent should allow the user to pick an <code><a href="#the-option-element">option</a></code> element in its @@ -62260,27 +62269,23 @@ <p>When the <i title="">select</i> binding applies to a <code><a href="#the-select-element">select</a></code> element whose <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code> attribute is absent, - and the element's <code title="attr-select-size"><a href="#attr-select-size">size</a></code> - attribute <a href="#rules-for-parsing-non-negative-integers" title="rules for parsing non-negative - integers">specifies</a> a value greater than 1, the element is - expected to render as a single-select list box.</p> + and the element's <a href="#concept-select-size" title="concept-select-size">display + size</a> is greater than 1, the element is expected to render as + a single-select list box.</p> <p>When the element renders as a list box, it is expected to render as an 'inline-block' box whose 'height' is the height necessary to - contain as many rows for items as <a href="#rules-for-parsing-non-negative-integers" title="rules for parsing - non-negative integers">specified</a> by the element's <code title="attr-select-size"><a href="#attr-select-size">size</a></code> attribute, or four rows if the + contain as many rows for items as given by the element's <a href="#concept-select-size" title="concept-select-size">display size</a>, or four rows if the attribute is absent, and whose 'width' is the <a href="#width-of-the-select-s-labels">width of the <code>select</code>'s labels</a> plus the width of a scrollbar.</p> <p>When the <i title="">select</i> binding applies to a <code><a href="#the-select-element">select</a></code> element whose <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code> attribute is absent, - and the element's <code title="attr-select-size"><a href="#attr-select-size">size</a></code> - attribute is either absent or <a href="#rules-for-parsing-non-negative-integers" title="rules for parsing - non-negative integers">specifies</a> either no value (an error), - or a value less than or equal to 1, the element is expected to - render as a one-line drop down box whose width is the <a href="#width-of-the-select-s-labels">width of - the <code>select</code>'s labels</a>.</p> + and the element's <a href="#concept-select-size" title="concept-select-size">display + size</a> is 1, the element is expected to render as a one-line + drop down box whose width is the <a href="#width-of-the-select-s-labels">width of the + <code>select</code>'s labels</a>.</p> <p>In either case (list box or drop-down box), the element's items are expected to be the element's <a href="#concept-select-option-list" title="concept-select-option-list">list of options</a>, with the
Received on Tuesday, 13 April 2010 00:27:09 UTC