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

> This would need to be a new API. I don't think we would want to change how `matchMedia` works.

Then it's a moot point. There is a lot of JavaScript code out there that relies on `matchMedia` to get the original OS preference. If `matchMedia` suddenly starts being affected by `<meta name="color-scheme">`, then it can break all this code.

-- 
GitHub Notification of comment by mayank99
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10249#issuecomment-2307071262 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 13:13:58 UTC