- From: 一丝 via GitHub <noreply@w3.org>
- Date: Thu, 19 Mar 2026 13:31:35 +0000
- To: public-css-archive@w3.org
> No, as this would lead to parsing issues. We need to be very specific _where_ the `light-dark()` with colors and the `light-dark()` with images is allowed. See [#12513 (comment)](https://github.com/w3c/csswg-drafts/issues/12513#issuecomment-4085662455) for the proposed syntax details. > > Practical example being `background: red light-dark(blue, url(dark.png));`. With a `dark` color-scheme that would be OK, but in a `light` color-scheme you’d end up with `background: red blue` which is invalid. Thank you for your explanation. That’s a very clear explanation, and I think it’s worth including in the specification text. -- GitHub Notification of comment by yisibl Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12513#issuecomment-4090157656 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 13:31:36 UTC