[csswg-drafts] [mediaqueries] Effect of <meta name=color-scheme> on the (prefers-color-scheme) MQ (#10249)

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [mediaqueries] Effect of <meta name=color-scheme> on the (prefers-color-scheme) MQ ==
Currently, it appears that the `<meta name=color-scheme>` element has no effect on the `(prefers-color-scheme)` MQ. This seems unfortunate; setting `<meta name=color-scheme content=dark>` *does* switch the default colors on the page to darkmode, but the styles still match `(prefers-color-scheme: light)`, resulting in inconsistent behavior.

It does appear that this is an oversight between Color Adjust, MQ, and the HTML spec. Currently the `meta` element affects the "supported color schemes", which is then used solely by the `color-scheme` *property* to restrict what values it can be set to.

Am I wrong in thinking that it should indeed also affect the MQ, in the same way?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10249 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 25 April 2024 20:12:59 UTC