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

> Also, curious, does `color-scheme()` use the color-scheme property of the parent (like style queries?) or the element's?

That is answered [here](https://github.com/w3c/csswg-drafts/issues/10577#issuecomment-2448061452): _“The condition would be querying the actual scheme the element is using.”_

On a side-note: You can hack your way into a `light-dark()` that works for _any value_ by combining custom functions and `if()`. See https://brm.us/at-function-and-if for details.



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


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

Received on Sunday, 18 May 2025 06:32:44 UTC