[Webkit-unassigned] [Bug 90546] New: Scrollbar width is not applied when element hidden
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 4 05:35:16 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=90546
Summary: Scrollbar width is not applied when element hidden
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: allan.jardine at sprymedia.co.uk
I have a function which attempts to calculate the width of a scrollbar by putting two elements on to the page, one inside the other and forcing the inner element to a larger height than the outer which is overflow: auto; Then by subtracting the outer width from the inner we get the scrollbar width.
This works in nearly all applications, apparent from when -webkit-scrollbar styles are applied to the scrolling element, and the element is visibility: hidden (note that if the element is visible, then it works as expected).
Test case with element visible - works as expected: http://sprymedia.co.uk/media/misc/webkit/custom_scroll_visible.html
Test case with element hidden - doesn't work: http://sprymedia.co.uk/media/misc/webkit/custom_scroll_hidden.html
If -webkit-scrollbar styles are not applied, then it will work regardless of visibility.
Tested in WebKit r121825 and shipping Safari 5.1.7 (7534.57.2).
Filed in 'New Bugs' as I'm not sure if this is a Javascript or rendering engine issue.
--
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