RESOLVED CONFIGURATION CHANGED261149
Navigating away from a meta color-scheme dark page causes dark background color on target page
https://bugs.webkit.org/show_bug.cgi?id=261149
Summary Navigating away from a meta color-scheme dark page causes dark background col...
Markus Dosch
Reported 2023-09-05 05:40:51 PDT
Scenario: - Originating page A sets <meta name="color-scheme" content="dark" /> - Target page B does not set a color-scheme, and does not set a background-color When navigating from A to B via a link, the expectation is: The background on B should be white. Actual result: Target page has a dark background, making the text illegible. The issue also occurs if the target page explicitly sets color-scheme to light. The issue did only occur when both pages were on the same domain, I could not reproduce it for cross-domain linking. Demo: https://markusdosch.github.io/webkit-bug-meta-color-scheme-dark/ Chrome & Firefox behave as expected and always show the target page with a white background.
Attachments
Aditya Keerthi
Comment 1 2023-09-05 13:06:05 PDT
Does this reproduce for you in STP? I'm unable to reproduce with Safari 17 (beta).
Aditya Keerthi
Comment 2 2023-09-05 13:06:44 PDT
Markus Dosch
Comment 3 2023-09-05 13:31:24 PDT
Thanks for your fast response! I just installed & checked with Safari Technology Preview - indeed, I can't reproduce it there! So it seems it will be fixed in Safari 17 (right?) :)
Aditya Keerthi
Comment 4 2023-09-05 13:33:54 PDT
It should be! Though the change that would have fixed this does not obviously come to mind 😅
Note You need to log in before you can comment on or make changes to this bug.