[Webkit-unassigned] [Bug 12104] New: Native Slider: When the thumb's height is specified as a percentage, it is not centered properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 3 11:08:38 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12104

           Summary: Native Slider: When the thumb's height is specified as a
                    percentage, it is not centered properly
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mitz at webkit.org
                CC: adele at apple.com


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!


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list