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

An off-the-cuff question: would `light-dark(<image>,<image>)` open up the possibility for `background: light-dark(<image>,<color>)`? Given `<image>` would include gradients (I presume), I could imagine unfortunate hacks around types with something like `background: light-dark(url(my-light-image.png), linear-gradient(black, black))` if we don't allow for the combinations.

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


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

Received on Thursday, 5 March 2026 10:57:39 UTC