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

Whatever is decided, I would expect authors would think that `<meta name=color-scheme>` and the `color-scheme` property are equivalent and have the same behaviour. I agree with @tabatkins that they should affect the `prefers-color-scheme` media query.

> but if it does, then declaring `color-scheme: dark` on `:root` should also have a similar outcome, no?

I thought it did, but apparently not. I tried in a CodePen and found that it does change the background colour of the page, but doesn't affect the media queries.
https://codepen.io/joshtumath/pen/ExBbrpy?editors=1100

-- 
GitHub Notification of comment by JoshTumath
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10249#issuecomment-2288754728 using your GitHub account


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

Received on Wednesday, 14 August 2024 13:30:36 UTC