Re: [csswg-drafts] [css-images-4] Add `light-dark-image()`, or generalize `light-dark()` for images too? (#12513)

> 2\. Add a `light-dark-image( <image>#{2} )` function, which is identical to `light-dark()` but always returns an image, instead of always returning a color.

I have a moderate preference for this option, keeping the types distinct.

Otherwise there is also a need to explain what happens with nested functions (like say relative colors, where the origin color is a `light-dark()` that returns an image)

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


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

Received on Tuesday, 22 July 2025 19:18:22 UTC