[Webkit-unassigned] [Bug 48976] stepUp/stepDown for values in step-mismatching state for input elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 16 01:31:43 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=48976
--- Comment #14 from Kent Tamura <tkent at chromium.org> 2010-11-16 01:31:42 PST ---
(In reply to comment #11)
> 1. <input type="number" min="0" value="0" step="0.003921568627450980" max="1" />
> 2. stepUp() for 255 times.
> 3. stepDown() for 255 times. => 3.838e-15 (0 is expected.)
>
> My patch removes numeric errors with "decimal places" as the bug 48308 does. (The maximum decimal places of step and the current value, not base.)
>
> This error removing does not work for the case above. The decimal places of step are large. We could remove this rounding error with stepwise adjustment at stepUp()/stepDown().
>
> This example is shown at HTML5 - 4.10.7.2.11 The step attribute.
The example in the specification is step=0.00392156863. The above step value, 0.003921568627450980, is too precise for single-precision and we should decrease "decimalPaces" value for such values. I'm not sure what algorithm we should implement yet.
(In reply to comment #13)
> In addition, I've submitted a patch just for discussion. Tests fail for this patch.
Do not set review? flag to unready patch.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list