Skip to content
Prev Previous commit
Merge branch 'main' into color-adjust
  • Loading branch information
tabatkins authored May 7, 2026
commit dc682b0dbad49827152233150531db4cf28148af
13 changes: 9 additions & 4 deletions css-color-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2809,10 +2809,9 @@ or any other color or monochrome output device which has been characterized.
or the second image,
if the <a>element color scheme</a> is ''dark''.

The <dfn value for="light-dark()">none</dfn> keyword
produces a [=transparent black=] image
with no natural size.
<span class=note>Equivalent to ''linear-gradient(transparent)''.</span>
The <dfn value for="light-dark()">none</dfn> keyword
computes to ''image(transparent)''
(a fully transparent image with no natural size).

<div class="example" id="ex-light-dark-color">
For example, to maintain a legible contrast on links,
Expand Down Expand Up @@ -2862,6 +2861,12 @@ or any other color or monochrome output device which has been characterized.
<pre class="lang-css">
background-image: light-dark(url(my-light-image.png), none);
</pre>

This is equivalent to:

<pre class="lang-css">
background-image: light-dark(url(my-light-image.png), image(transparent));
<pre>
</div>


Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.