Bug 113727 - Scrollbar does not pick up changed styles until hovered
Summary: Scrollbar does not pick up changed styles until hovered
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antonio Gomes
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-04-01 15:56 PDT by Jon Rimmer
Modified: 2023-05-22 13:13 PDT (History)
5 users (show)

See Also:


Attachments
Simple testcase (804 bytes, text/html)
2013-04-01 15:57 PDT, Jon Rimmer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Rimmer 2013-04-01 15:56:31 PDT
If the scrollbar pseudo-elements are used to change the appearance of the scrollbar, live changes to the applicable styles are not applied immediately. Instead, the parts of the scrollbar must be hovered, at which point they will change their appearance.

See the attached testcase for an example. A button is used to toggle a 'dark' class on the document element. Different styles apply to the body and the scrollbar when this class is present, but the new scrollbar styles are not picked up immediately, instead it retains the old appearance until it is hovered.

Browser: Google Chrome 27.0.1453.9 (Official Build 191205) dev-m
OS: Windows 7
WebKit: 537.36 (@146919)
Comment 1 Jon Rimmer 2013-04-01 15:57:10 PDT
Created attachment 196031 [details]
Simple testcase
Comment 2 Brent Fulgham 2022-07-13 14:32:44 PDT
Safari and Chrome both handle this test case properly.
Comment 3 Ahmad Saleem 2023-05-22 08:41:02 PDT
Reopening since it has PR - https://github.com/WebKit/WebKit/pull/12312
Comment 4 EWS 2023-05-22 13:12:03 PDT
Committed 264356@main (dfd97e668d4a): <https://commits.webkit.org/264356@main>

Reviewed commits have been landed. Closing PR #12312 and removing active labels.
Comment 5 Radar WebKit Bug Importer 2023-05-22 13:13:18 PDT
<rdar://problem/109674102>