Ship light-dark() for images.
Categories
(Core :: CSS Parsing and Computation, task, P3)
Tracking
()
People
(Reporter: emilio, Assigned: emilio)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
| Assignee | ||
Comment 1•6 months ago
|
||
Resolved in https://github.com/w3c/csswg-drafts/issues/12513
Updated•6 months ago
|
| Assignee | ||
Updated•6 months ago
|
Comment 5•6 months ago
|
||
:emilio, could you consider nominating this for a release note? (Process info)
| Assignee | ||
Comment 6•6 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: New CSS feature
[Affects Firefox for Android]: Yes
[Suggested wording]: You can now use light-dark() on images just like on colors, which is very useful to support dark mode on websites.
[Links (documentation, blog post, etc)]: https://github.com/w3c/csswg-drafts/issues/12513
Comment 7•6 months ago
|
||
Thanks, added to the Fx150 nightly release notes, please allow 30 minutes for the site to update.
Updated•6 months ago
|
Comment 10•6 months ago
|
||
There are also WPT in css-color for this:
https://wpt.fyi/results/css/css-color/light-dark-image.html
Firefox fails on one of them but I disagree, so have submitted an issue
I have all these working in the following pens:
Comment 11•6 months ago
|
||
Related pull requests
Updated•6 months ago
|
Description
•