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

> 2. We need to be able to respond to color-scheme changes on elements within the page, too, so we should design a style query for this instead.
> 
> ...
>
> For (2), I agree that would be useful (and agree that it needs a special mechanism, since it's about the _used_ color scheme, not the computed value, which SQs currently match on).
> 
> What I disagree is that this is something we should do _instead_ of my proposal.

I agree with @tabatkins. Having a style query would be useful, but it doesn't cover all the use cases of the proposal. We often have the need to provide separate image and video sources for darkmode. This is currently hard to do as we have a custom darkmode setting on our site. Having `<meta name=color-scheme>` affect the MQ would make this easy to implement, a style query would not.

-- 
GitHub Notification of comment by johannesodland
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10249#issuecomment-2306329038 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 05:38:33 UTC