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

Yeah, we can't allow that; it would mean that `background: light-dark(url(my-light-image.png), black) white;` is valid or not based on color-scheme, and so would probably require special-purpose validation logic to reject it as invalid preemptively.

We have `linear-gradient(black)` to produce a solid-color image, and some day `image(black)` if anyone ever chooses to actually implement the `image()` function.

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


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

Received on Friday, 6 March 2026 22:24:46 UTC