Closed Bug 1138982 Opened 9 years ago Closed 6 years ago

input type="range", doesn't render correct values in some cases

Categories

(Core :: Layout: Form Controls, defect)

36 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: radek.rericha, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36

Steps to reproduce:

view html <input type='range' min='0' max='9999999' value="5000000" />


Actual results:

slider appears like if it have value of 0

http://jsfiddle.net/rerich/pn1o3wvn/


Expected results:

slider should be in the middle
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
Looks like we're doing some weird math. This seems to work for example:
<input type='range' min='0' max='9999999' value="5000999" />

Looks like it's a pattern, I see the same effect between:
<input type='range' min='0' max='9999999' value="5999999" />  (looks about right)
<input type='range' min='0' max='9999999' value="6000000" />  (looks like the value is 0)
Flags: needinfo?(jwatt)
OS: Windows 7 → All
Hardware: x86_64 → All
check same issue in chrome. they already solved this.

https://code.google.com/p/chromium/issues/detail?id=463510
This was fixed when we updated our copy of the Decimal code.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(jwatt)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.