html5/spec Overview.html,1.4311,1.4312

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv30783

Modified Files:
	Overview.html 
Log Message:
Make type=range round up when it's ambiguous (whatwg r5400)

Index: Overview.html
===================================================================
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>&lt;input&nbsp;type="range"&nbsp;min=0&nbsp;max=100&nbsp;step=20&nbsp;value=50&gt;</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:38:49 UTC