@@ -124,7 +124,7 @@ Introduction {#intro}
124124
125125 <pre class='prod'>
126126 <color> = <<color-base>> | currentColor | <<system-color>> |
127- <<contrast-color()>> | <<device-cmyk()>> | <<light-dark() >>
127+ <<contrast-color()>> | <<device-cmyk()>> | <<light-dark-color >>
128128
129129 <dfn><color-base></dfn> = <<hex-color>> | <<color-function>> | <<named-color>> | <<color-mix()>> | transparent
130130 <dfn><color-function></dfn> = <<rgb()>> | <<rgba()>> |
@@ -141,7 +141,7 @@ Introduction {#intro}
141141
142142 * ''currentColor'' (which depends on the value of the 'color' property)
143143 * a <<system-color>> (which depends on the color mode)
144- * <<light-dark() >> (which depends on the color mode)
144+ * <<light-dark-color >> (which depends on the color mode)
145145 * <<contrast-color()>> (which depends on the color mode)
146146 * <<device-cmyk()>> (which has no colorimetric basis)
147147
@@ -2766,9 +2766,17 @@ or any other color or monochrome output device which has been characterized.
27662766
27672767 There are two forms of this function: one takes a pair of colors
27682768 while the other takes a pair of images.
2769+ Attempting to use one image and one color
2770+ will result in a parse-time error.
27692771
2770- <pre class='prod'>
2772+ <!-- < pre class='prod'>
27712773 <dfn export>light-dark()</dfn> = light-dark( [<<color>> , <<color>> ] | [<<image>> , <<image>> ])
2774+ </pre> -->
2775+
2776+ <pre class='prod'>
2777+ <dfn export>light-dark()</dfn> = <<light-dark-color>> | <<light-dark-image>>
2778+ <dfn export><<light-dark-color>></dfn> = light-dark(<<color>> , <<color>> )
2779+ <dfn export><<light-dark-image>></dfn> = light-dark(<<image>> , <<image>> )
27722780 </pre>
27732781
27742782 For the color form, this function computes to the computed value of the first color,
@@ -2828,6 +2836,7 @@ or any other color or monochrome output device which has been characterized.
28282836 <wpt>
28292837 light-dark-basic.html
28302838 light-dark-currentcolor.html
2839+ light-dark-image.html
28312840 light-dark-inheritance.html
28322841 light-dark-currentcolor-in-color.html
28332842 /css/css-pseudo/highlight-styling-004.html
@@ -3776,6 +3785,10 @@ This specification adds a way to ensure adequate contrast for text whose backgro
37763785</h3>
37773786
37783787<ul>
3788+ <li> Added a second form of the light-dark() function,
3789+ which takes a pair of images rather than a pair of colors
3790+ (<a href="https://github.com/w3c/csswg-drafts/issues/12513">Issue 12513</a> )
3791+ </li>
37793792 <li> Added a color-mix() example with three colors, now that it is no longer restricted to just two.</li>
37803793</ul>
37813794
0 commit comments