- From: poot <cvsmail@w3.org>
- Date: Tue, 31 Aug 2010 03:45:08 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Make type=range round up when it's ambiguous (whatwg r5400) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4311&r2=1.4312&f=h http://html5.org/tools/web-apps-tracker?from=5399&to=5400 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4311 retrieving revision 1.4312 diff -u -d -r1.4311 -r1.4312 --- Overview.html 30 Aug 2010 18:24:00 -0000 1.4311 +++ Overview.html 30 Aug 2010 18:38:44 -0000 1.4312 @@ -30052,7 +30052,9 @@ <p>When the element is <a href="#suffering-from-a-step-mismatch">suffering from a step mismatch</a>, the user agent may round the element's <a href="#concept-fe-value" title="concept-fe-value">value</a> to the nearest number for which the element would not <a href="#suffering-from-a-step-mismatch" title="suffering from a step - mismatch">suffer from a step mismatch</a>.</p> + mismatch">suffer from a step mismatch</a>. If there are two such + numbers, user agents are encouraged to pick the one nearest positive + infinity.</p> <p><strong>The <a href="#concept-input-value-string-number" title="concept-input-value-string-number">algorithm to convert a string to a number</a>, given a string <var title="">input</var>, @@ -30187,7 +30189,13 @@ than or equal to the <a href="#concept-input-min" title="concept-input-min">minimum</a>, and, if the <a href="#concept-input-max" title="concept-input-max">maximum</a> is not less than the <a href="#concept-input-min" title="concept-input-min">minimum</a>, which - is less than or equal to the <a href="#concept-input-max" title="concept-input-max">maximum</a>.</p> + is less than or equal to the <a href="#concept-input-max" title="concept-input-max">maximum</a>. If two numbers match these + constraints, then user agents must use the one nearest to positive + infinity.</p> + + <p class="example">For example, the markup + <code><input type="range" min=0 max=100 step=20 value=50></code> + results in a range control whose initial value is 60.</p> <p><strong>The <a href="#concept-input-value-string-number" title="concept-input-value-string-number">algorithm to convert a string to a number</a>, given a string <var title="">input</var>,
Received on Monday, 30 August 2010 18:39:26 UTC