Re: [csswg-drafts] [css-conditional][selectors] A way to set styles according to the used color scheme (#12681)

Just noting here that this issue does not subsume #10249 (about making the MQ reflect the used color scheme), but is a useful addition on its own, for testing the used color scheme on a *subtree*.

I agree that a CQ for this is appropriate, testing a style queries container, called `color-scheme()`. This matches the `if()` proposal in <https://github.com/w3c/csswg-drafts/issues/10577#issuecomment-3104198955>. It would have the standard difference with `if()`, in that as a CQ it can only test ancestors of an element, while `if()` tests on the element itself.

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


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

Received on Friday, 29 August 2025 17:16:39 UTC