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

> Having it as a media query would make it possible to provide matching sources for `<picture>` and `<video>` sources. It would probably have to be based on the used color-scheme on the root element.

But being able to do `if()` checks or `container queries` in `<picture>` and `<video>` elements is the actual solution to that and many other issues, right? (wondering if this might be doable for lazy loaded images only, comparable to `sizes=auto`)

-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10577#issuecomment-3237072607 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 13:35:56 UTC