Re: [csswg-drafts] [css-values-5] Using `if()` to do dark/light switching of image urls. (#10577)

@astearns @tabatkins The proposed resolution should probably be:

> Proposed Resolution: add `color-scheme()` test to `if()` and **container** queries, which tests the used color scheme on the element

Although arguably adding it to `container` queries requires more thought. Is there an actual use case for querying the used color scheme of a container as this can be different from the element itself, right? 

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


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

Received on Tuesday, 29 July 2025 10:47:18 UTC