Skip to content

Commit 100146f

Browse files
yisiblsvgeesus
authored andcommitted
[css-color-5] Add the none keyword to light-dark()
#12513 (comment) 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
1 parent 9514be5 commit 100146f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-color-5/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2795,7 +2795,7 @@ or any other color or monochrome output device which has been characterized.
27952795
<pre class='prod'>
27962796
<dfn export>light-dark()</dfn> = <<light-dark-color>> | <<light-dark-image>>
27972797
<dfn export><<light-dark-color>></dfn> = light-dark(<<color>>, <<color>>)
2798-
<dfn export><<light-dark-image>></dfn> = light-dark(<<image>>, <<image>>)
2798+
<dfn export><<light-dark-image>></dfn> = light-dark(<<image>> | none, <<image>> | none)
27992799
</pre>
28002800

28012801
For the color form, this function computes to the computed value of the first color,

0 commit comments

Comments
 (0)