WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
244494
Scrollbar doesn't update on CSS color-scheme change
https://bugs.webkit.org/show_bug.cgi?id=244494
Summary
Scrollbar doesn't update on CSS color-scheme change
Maros
Reported
2022-08-29 05:45:19 PDT
Created
attachment 461974
[details]
Bug example When "color-scheme" change from "light" to "dark" and vice versa colors of scrollbar aren't updated. It seems like element reflow/repaint is missing. I created jsfiddle which displays this issue. Colors are updated only after hover over scrollbar or in case scrollbar is rendered due "overflow:auto" force-reflow hack fix it too but it didn't work if scrollbar came from "overflow:scroll". Steps to reproduce in example 1. Open in Safari 2. Click "Toggle theme - dark" button - page should change background color to blue but scrollbars should stay same as on yellow (white bg with grey slider) 3. Click "Force reflow" - top block with Lorem ipsum should change scrollbar colour to be semi-transparent (low opacity dark bg and grey slider), but lower block with horizontal & vertical scrollbar should stay same 4. Hover over scrollbars of bottom Lorem ipsum - scrollbars should turn to semi-transparend but bottom right edge should stay white Example in attachement & in JSFiddle
https://jsfiddle.net/marospistej/vj9tf2on/41/
Issue is only present on Safari, all Chrome, FF change scrollbar color as expected even without reflow Expected behaviour: When "color-scheme" change scrollbars should update
Attachments
Bug example
(2.13 KB, text/html)
2022-08-29 05:45 PDT
,
Maros
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Maros
Comment 1
2022-08-29 06:49:16 PDT
It's also necessary to set "Show scroll bars" to "Always" in Settings > General
Peter
Comment 2
2022-09-02 06:21:25 PDT
Happens on macOS Ventura as well.
Radar WebKit Bug Importer
Comment 3
2022-09-05 05:46:17 PDT
<
rdar://problem/99567600
>
Luke Warlow
Comment 4
2023-06-23 14:46:59 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/15264
Luke Warlow
Comment 5
2023-06-24 09:40:51 PDT
See also URL:
https://github.com/web-platform-tests/wpt/pull/40737
(I don't have permission to edit the bug)
EWS
Comment 6
2023-07-20 03:02:19 PDT
Committed
266176@main
(044d44c8940b): <
https://commits.webkit.org/266176@main
> Reviewed commits have been landed. Closing PR #15264 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug