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

> Is there sufficient overlap with [#10064](https://github.com/w3c/csswg-drafts/issues/10064) to consider something like `color-scheme(dark)` as a condition for `<<if-cond>>` ?
> 
> So that you can do : `if(color-scheme(dark): blue, else: cyan)`
> 
> In other words do we need a dedicated function for color schemed values if we are already considering other syntax for more generic inline conditions?

why not `calc( color-scheme(dark)? blue: cyan )`

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


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

Received on Wednesday, 24 September 2025 19:12:35 UTC