RESOLVED DUPLICATE of bug 293230 293548
REGRESSION(?): :hover and :active states inside &::-webkit-scrollbar-thumb apply to the entire element
https://bugs.webkit.org/show_bug.cgi?id=293548
Summary REGRESSION(?): :hover and :active states inside &::-webkit-scrollbar-thumb ap...
emile
Reported 2025-05-25 09:02:45 PDT
This piece of code doesn't work anymore since sometime around Safari 18.4. .foo { &::-webkit-scrollbar-thumb { &:hover{ background: red; } } } Hovering .foo will make the entire background red, instead of only the scrollbar. This used to work. Creating separate lines, e.g. &::-webkit-scrollbar-thumb:hover { ... } solves it for now.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-05-27 19:33:01 PDT
Ahmad Saleem
Comment 2 2025-05-30 15:03:46 PDT
@Emile - by any chance, you have demo or reduction or reproduction of test case, which we can use to reproduce the bug on how you are experiencing on particular website or in your scenario?
emile
Comment 3 2025-05-31 03:54:53 PDT
Ahmad Saleem
Comment 4 2025-05-31 09:41:51 PDT
*** Chrome Canary 139.0.7208.0 (Official Build) canary (arm64) *** First div container does not show anything on hover. *** Safari 18.5 *** First div container show `blue` whole background as blue *** Firefox Nightly 141 *** N/A - due to `-webkit-` prefix case.
Simon Fraser (smfr)
Comment 5 2025-06-02 09:22:49 PDT
Issue with nesting and pseudoelements?
Matthieu Dubet
Comment 6 2025-06-13 14:35:41 PDT
*** This bug has been marked as a duplicate of bug 293230 ***
Note You need to log in before you can comment on or make changes to this bug.