Bug 93785

Summary: Adding -webkit-scrollbar styles don't affect pre-existing scrollbars
Product: WebKit Reporter: Jon <jonnew>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: andersca, bfulgham, jchaffraix, webkit-bug-importer
Priority: P2 Keywords: HasReduction, InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://jsfiddle.net/newtang/N4Vws/1/

Jon
Reported 2012-08-12 13:45:35 PDT
1. Have a div with scrollbars 2. Add -webkit-scrollbar styles that affect the look of the scrollbars Expected result: The existing scrollbars show the new styles, and newly added divs with scrollbars show the correct styles Actual result: Existing scrollbars do not update, but newly added divs with scrollbars show the correct styles. This url shows the behavior: http://jsfiddle.net/newtang/N4Vws/1/ (I'm adding an inline style tag in this example. Adding an external stylesheet has the same problem.)
Attachments
Julien Chaffraix
Comment 1 2012-08-22 09:01:50 PDT
Confirmed on WebKit ToT (Chromium & Mac Lion). There is another bug too: if you remove the custom scrollbar style from an existing overflow: auto div, you don't fall back to the normal scrollbars.
Brent Fulgham
Comment 2 2022-07-13 10:45:59 PDT
This is still an issue in Safari 15.
Radar WebKit Bug Importer
Comment 3 2022-07-13 10:46:10 PDT
Note You need to log in before you can comment on or make changes to this bug.