[mediaqueries] Effect of <meta name=color-scheme> on img and video sources
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: mozilla-apprentice, Assigned: emilio)
References
Details
(Keywords: dev-doc-needed)
Attachments
(2 external files)
A resolution was made for csswg-drafts/#13377.
[mediaqueries] Effect of <meta name=color-scheme> on img and video sources
- RESOLVED: (prefers-color-scheme) reflects <meta name=color-scheme>. Add (bikeshed-color-scheme) to always reflect the preference coming from the browser. (pending feedback from other commenters in the issue)
| Assignee | ||
Updated•4 days ago
|
| Assignee | ||
Comment 1•4 days ago
|
||
As per https://github.com/w3c/csswg-drafts/issues/13377
See https://github.com/w3c/csswg-drafts/issues/14493#issuecomment-6382548874
for some context that made me look at this.
The ChromeRulesEnabled check is because I want to remove some chrome
usages of the override.
Updated•4 days ago
|
| Assignee | ||
Comment 2•4 days ago
|
||
No behavior change, but less magic :)
Comment 4•2 days ago
|
||
| bugherder | ||
Comment 5•1 day ago
|
||
Did you want to nominate this for the Fx161 relnotes? If so, set the relnote-firefox flag to "?"
https://wiki.mozilla.org/Release_Management/Release_Notes_Nomination
Possible wording:
The
prefers-color-schememedia query now reflects the color scheme a page declares with<meta name="color-scheme">.
| Assignee | ||
Comment 6•1 day ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: Improves the ability for sites to select better resources based on color scheme, and to implement color scheme pickers.
[Affects Firefox for Android]: Yes
[Suggested wording]: <meta name=color-scheme> now affects the prefers-colors-cheme media query if it only specifies one scheme, allowing better resource selection and making theme switchers easier to implement.
[Links (documentation, blog post, etc)]: This bug and the CSSWG issue
| Assignee | ||
Comment 7•1 day ago
|
||
Is wpt-sync down? There are tests here that should ideally be upstreamed?
Updated•1 day ago
|
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/64278 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Updated•21 hours ago
|
Comment 10•1 hour ago
|
||
@emilio
This just broke automatic theme detection in Pontoon
https://github.com/mozilla/pontoon/issues/4628
While this can be fixed, I'd be surprised if this is the only website affected, so this might become a webcompat issue.
| Assignee | ||
Comment 11•1 hour ago
|
||
Seems you specify only light as the supported color scheme so that would need fixing. https://github.com/mozilla/pontoon/blob/774c7ba2fe3629611292c3ea89eb0b8e79938c86/translate/public/translate.html#L14
Do you know how that line came to be? I guess I could add some telemetry if needed, but that seems pretty clearly a pontoon issue.
Comment 12•1 hour ago
|
||
This was added here, apparently to work around an issue with Chrome
https://github.com/mozilla/pontoon/issues/2576
Description
•