Web Wish 9: Used Color Scheme Media Query
Currently, you can use prefers-color-scheme
in the media
attribute of a <source>
to provide video or images that matches the users preferred color scheme.
However, this might not actually match the used color scheme,
as a different color scheme can be set in either <meta name=color-scheme>
or by setting the color-scheme
property.
I need a way to provide image and video sources that match the used color scheme and not just the preferred one. I've written extensively about it in The Case for a Used-Color-Scheme Media Feature
This holiday I'm wishing for a way to provide light and dark mode image sources, so they can match the used color scheme.
Relevant issues and PRs: