@@ -2807,6 +2807,15 @@ or any other color or monochrome output device which has been characterized.
28072807 if the <a>used color scheme</a> is ''light'' or unknown,
28082808 or the second image,
28092809 if the <a>used color scheme</a> is ''dark'' .
2810+ The none keyword
2811+ produces a fully transparent image
2812+ with no natural size.
2813+
2814+ It is equivalent to a single-stop gradient whose stop color is ''transparent'' ':
2815+
2816+ <pre class="lang-css">
2817+ linear-gradient(transparent)
2818+ </pre>
28102819
28112820 <div class="example" id="ex-light-dark-color">
28122821 For example, to maintain a legible contrast on links,
@@ -2847,7 +2856,15 @@ or any other color or monochrome output device which has been characterized.
28472856 );
28482857 }
28492858 </pre>
2859+ </div>
28502860
2861+ <div class="example" id="ex-light-dark-none">
2862+ For example, a raster image is used in light mode,
2863+ while in dark mode we want a fully-transparent image.
2864+
2865+ <pre class="lang-css">
2866+ background-image: light-dark(url(my-light-image.png), none);
2867+ </pre>
28512868 </div>
28522869
28532870
@@ -3808,6 +3825,9 @@ This specification adds a way to ensure adequate contrast for text whose backgro
38083825 which takes a pair of images rather than a pair of colors
38093826 (<a href="https://github.com/w3c/csswg-drafts/issues/12513">Issue 12513</a> )
38103827 </li>
3828+ <li> Added a "none" option to the image form of light-dark()
3829+ (<a href="https://github.com/w3c/csswg-drafts/issues/12513">Issue 12513</a> )
3830+ </li>
38113831 <li> Added a color-mix() example with three colors, now that it is no longer restricted to just two.</li>
38123832</ul>
38133833
0 commit comments