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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>49782</bug_id>
          
          <creation_ts>2010-11-18 19:56:09 -0800</creation_ts>
          <short_desc>255 stepUp()s for step=0.00392156863 is not 1.</short_desc>
          <delta_ts>2024-01-18 08:58:12 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Dai Mikurube">dmikurube</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>annevk</cc>
    
    <cc>dmikurube</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>311257</commentid>
    <comment_count>0</comment_count>
    <who name="Dai Mikurube">dmikurube</who>
    <bug_when>2010-11-18 19:56:09 -0800</bug_when>
    <thetext>How to reproduce:
1. &lt;input type=&quot;number&quot; min=&quot;0&quot; value=&quot;0&quot; step=&quot;0.00392156863&quot; /&gt;
2. stepUp() for 255 times.

Expected:
1 (from an example at HTML5 spec. : 4.10.7.2.11 The step attribute)

Actual:
1.00000000065


Discussed at the bug 48976.

Hints:
I found we can calculate it if completely using IEEE 754 single precision numbers.
Re-considering precisions in calculation and printing may help.

Another option:
Re-consider the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002518</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-02 09:15:38 -0800</bug_when>
    <thetext>Chrome Canary 122 - 1.00000000065

Safari 17.2.1 - 1.00000000065

Firefox Nightly 123 - 1.00000000065

I didn&apos;t counted 255 clicks, I just moved using &apos;Up&apos; key till reaching near 0.99xx to 1.xx.

I think web-spec is for &apos;double precision&apos; number, so we can mark this as &apos;RESOLVED CONFIGURATION CHANGED&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>