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

@yisibl This would also be valid and more straightforward:
~~~~ css
background: light-dark(image(red), image("foo.png"));
~~~~

Given that `image()` may accept a single `<color>` argument but still always returns `<image>` itself, I think `light-dark()` could very well accept a mix of `<image>` and `<color>` but always return `<image>` then, basically auto-wrapping `image(<color>)` (similar to how `<string>` may effectively be auto-wrapped by `url()` or `src()` in some places).

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


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

Received on Thursday, 19 March 2026 15:51:04 UTC