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

> ([#](https://github.com/w3c/csswg-drafts/issues/10249#issuecomment-2302539694)) It might be useful to get the author/OS's original preference, even if the page is currently overriding that preference.
> 
> I accept that this information might be useful, but not useful _within static CSS_. If you need this info, it'll be in JS, as part of a larger preference-handling mechanism. I'm open to being corrected, but currently I see no possibly reason you would want to style the page based on a color scheme _not being used on the page_. Getting this information (the original preference) from a JS API sounds reasonable, tho.

@tabatkins Are you suggesting that JS `matchMedia` should work differently from CSS `@media`? i.e. JS `matchMedia` should continue to _not_ be affected by `<meta name="color-scheme">` and only CSS `@media` should be affected?

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


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

Received on Friday, 23 August 2024 02:00:33 UTC