W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2015

[Bug 27594] Initial value in an example is 50 (not 60)

From: <bugzilla@jessica.w3.org>
Date: Wed, 08 Jul 2015 15:06:34 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-27594-2486-7lF5Hyg2mg@http.www.w3.org/Bugs/Public/>

Philippe Le Hegaret <plh@w3.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |plh@w3.org
         Resolution|---                         |INVALID

--- Comment #1 from Philippe Le Hegaret <plh@w3.org> ---
Actually, the spec is correct:

When the element is suffering from a step mismatch, the user agent must round
the element's value to the nearest number for which the element would not
suffer from a step mismatch, and which is greater than or equal to the minimum,
and, if the maximum is not less than the minimum, which is less than or equal
to the maximum, if there is a number that matches these constraints. If two
numbers match these constraints, then user agents must use the one nearest to
positive infinity.

For example, the markup <input type="range" min=0 max=100 step=20 value=50>
results in a range control whose initial value is 60.

50 is a step mismatch. It could be rounded to 40 and 60, and 60 is the one
nearest to positive infinity.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 8 July 2015 15:06:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 July 2015 15:06:39 UTC