RESOLVED FIXED Bug 12104
Native Slider: When the thumb's height is specified as a percentage, it is not centered properly
https://bugs.webkit.org/show_bug.cgi?id=12104
Summary Native Slider: When the thumb's height is specified as a percentage, it is no...
mitz
Reported 2007-01-03 11:08:37 PST
When the slider thumb's height (width if the slider is vertical) is specified as a percentage, it is not centered properly. For centering purposes, the percent value is treated as a pixel value. For example, this puts the green "thumb" way too high: <style> input { -webkit-appearance: none; background: silver; height: 20px; width: 200px; } input::-webkit-slider-thumb { -webkit-appearance: none; background: green; width: 10px; height: 50%; } </style> <input type="range"> Treating percentages as pixels is going to turn into an assertion failure once bug 5164 is fixed!
Attachments
Testcase (241 bytes, text/html)
2009-05-08 13:37 PDT, Simon Fraser (smfr)
no flags
Darin Adler
Comment 1 2009-03-25 07:35:29 PDT
This check-in http://trac.webkit.org/changeset/41972 fixes this bug. But we should probably turn the test case attached here into a regression test and land it before closing this bug.
Darin Adler
Comment 2 2009-03-29 08:17:55 PDT
Simon Fraser (smfr)
Comment 3 2009-05-08 13:37:02 PDT
Created attachment 30139 [details] Testcase
Note You need to log in before you can comment on or make changes to this bug.