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

FWIW while on SVG this is indeed doable (via prefers-color-scheme inside, or so), this seems a fair use-case, and the `light-dark()` function (even if it's effectively syntax sugar for `if(color-scheme(...), ...)`) might still be useful? (I just came across a use case for this in the Firefox front-end for example).

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


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

Received on Friday, 16 May 2025 14:16:20 UTC