Bug 93785
| Summary: | Adding -webkit-scrollbar styles don't affect pre-existing scrollbars | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jon <jonnew> |
| Component: | CSS | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Julien Chaffraix
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
This is still an issue in Safari 15.
Radar WebKit Bug Importer
<rdar://problem/96961319>