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

@svgeesus I think that the definition should also say that the function is invalid when it takes `<color>`s in contexts expecting an `<image>`, and the other way around, otherwise `color: light-dark(url(foo.webp), url(bar.webp))` would be valid at parse time, which I think is not intentional, and if I am not mistaken.

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


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

Received on Monday, 16 March 2026 05:02:49 UTC