prefers-color-scheme is not updated according to the selected high contrast theme
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: simon.lenz, Assigned: emilio)
References
Details
Attachments
(4 files)
Steps to reproduce:
- Enable windows High-Contrast mode with the theme "High Contrast Black"
- Firefox's appearance setting "System Theme"
- Look at https://codepen.io/simondl/pen/oNdgpdE in Firefox
Notes:
- On Chromium-based browsers, I get the expected result
- The expected behaviour is described in:
Actual results:
Div (1) spans the whole width.
Div (2) is narrow.
Div (3) spans the whole width.
Expected results:
Div (1) is narrow.
Div (2) is narrow.
Div (3) is narrow.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Theme' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
I was able to reproduce this issue in all versions of Firefox using the https://codepen.io/simondl/pen/oNdgpdE test case.
Updated•2 years ago
|
Assignee | ||
Updated•1 year ago
|
Comment 3•1 year ago
•
|
||
Here's a test case that tries to invert a white SVG icon to be black if we determine that the background is light.
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
We might want to do this more generally at the PreferencesSheet level
all the times we're forcing colors, but this should be uncontroversial
and fix the default behavior.
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
This requires moving some code around to PreferenceSheet, but that makes
stuff actually a bit simpler.
Need to add a test for this.
Depends on D192574
Assignee | ||
Updated•1 year ago
|
Comment 7•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c25f6d823433
https://hg.mozilla.org/mozilla-central/rev/bdfe284b7ab1
https://hg.mozilla.org/mozilla-central/rev/5f1ebbf34671
Comment 8•1 year ago
|
||
Verified as fixed in our latest Nightly build 121.0a1 (2023-11-07).
Comment 9•1 year ago
|
||
The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox120
towontfix
.
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Description
•