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

> 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?

No, I'm talking a *new* API to fetch the "original" preference (possibly something hanging off the Web Preferences API). Having all uses of MQs be consistent is definitely required, I think.

> We also use matchMedia for our analytics to see what percentage of users have dark mode turned on in their OS settings.

Are you doing that on pages that currently have an explicit `content="light"` or `content="dark"` in their meta? Because if they're instead using `content="light dark"` (or not using the meta at all), it'll continue to act like it does today.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10249#issuecomment-2307622765 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 18:43:11 UTC