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!
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.
http://trac.webkit.org/changeset/42080
Created attachment 30139 [details] Testcase