<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27594</bug_id>
          
          <creation_ts>2014-12-12 10:44:22 +0000</creation_ts>
          <short_desc>Initial value in an example is 50 (not 60)</short_desc>
          <delta_ts>2015-07-08 15:06:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>editorial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Róbert Mareček">robo</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>mike</cc>
    
    <cc>plh</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116208</commentid>
    <comment_count>0</comment_count>
    <who name="Róbert Mareček">robo</who>
    <bug_when>2014-12-12 10:44:22 +0000</bug_when>
    <thetext>&quot;For example, the markup &lt;input type=&quot;range&quot; min=0 max=100 step=20 value=50&gt; results in a range control whose initial value is 60.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121878</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Le Hegaret">plh</who>
    <bug_when>2015-07-08 15:06:34 +0000</bug_when>
    <thetext>Actually, the spec is correct:

[[
When the element is suffering from a step mismatch, the user agent must round the element&apos;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 &lt;input type=&quot;range&quot; min=0 max=100 step=20 value=50&gt; 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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>