- From: 一丝 via GitHub <noreply@w3.org>
- Date: Tue, 24 Mar 2026 16:38:53 +0000
- To: public-css-archive@w3.org
yisibl has just submitted a new pull request for https://github.com/w3c/csswg-drafts:
== [css-color-5] Add the `none` keyword to `light-dark()` ==
Fixes: https://github.com/w3c/csswg-drafts/issues/12513#issuecomment-4113020766
This means that `light-dark(url(foo.png), none)` will be a valid value. The `none` keyword is equivalent to `linear-gradient(transparent)`, but is more intuitive.
This also makes conditional checks in `@supports` more concise:
```css
@supports (light-dark(none, none)) { }
```
In addition, `none` is also supported in `-webkit-cross-fade()`, See: https://github.com/web-platform-tests/wpt/blob/0efed9003fb6c920d404928776fc9a400bb78560/css/css-images/cross-fade-legacy-crash.html#L8
[css-spec-shortname-1] Brief description which should also include the #issuenum-or-URL and/or link to relevant CSSWG minutes.
Copy the above line into the Title and replace with the relevant details. Fill in any additional details here. See https://github.com/w3c/csswg-drafts/blob/master/CONTRIBUTING.md for more info.
See https://github.com/w3c/csswg-drafts/pull/13712
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 24 March 2026 16:38:54 UTC