Summary: | When in dark mode, switching to a light theme on the page results in invisible (light) scrollbars | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sean Patterson <sean_patterson> | ||||
Component: | Scrolling | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Major | CC: | aestes, rik, sean_patterson, simon.fraser, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | Safari Technology Preview | ||||||
Hardware: | Mac | ||||||
OS: | macOS 10.15 | ||||||
URL: | https://twitter.com/anthony_ricaud/status/1273751909573234689?s=20 | ||||||
Attachments: |
|
Description
Sean Patterson
2020-06-19 11:32:43 PDT
Created attachment 402309 [details]
Reduced Testcase
With this reduced testcase, it seems the scrollbar color does not adapt to the background color in Dark mode with `color-scheme: light dark`.
If you remove `color-scheme: light dark`, the scrollbar always adapts to the background color.
When the page is in light mode, and the OS is dark mode, FrameView::recalculateScrollbarOverlayStyle() computes an overlay scrollbar style of ScrollbarOverlayStyleDefault, which I think means "use the OS default" which gives the wrong color. |