Skip to content

Commit 6afe8a1

Browse files
committed
[css-color-5] Added contrast-color() to the color type definition
1 parent 6ba8887 commit 6afe8a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

css-color-5/Overview.bs

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Editor: Chris Lilley, W3C, https://svgees.us/, w3cid 1438
1414
Editor: Una Kravets, Google, https://una.im, w3cid 115525
1515
Editor: Lea Verou, Invited Expert, http://lea.verou.me/about, w3cid 52258
1616
Editor: Adam Argyle, Google, https://nerdy.dev, w3cid 112669
17-
Abstract: This module extends CSS Color [[css-color-4]] to add color modification functions, custom color spaces (ICC profiles), light-dark() and device-cmyk().
17+
Abstract: This module extends CSS Color [[css-color-4]] to add color modification functions, custom color spaces (ICC profiles), contrast-color(), light-dark() and device-cmyk().
1818
Repository: w3c/csswg-drafts
1919
WPT Path Prefix: css/css-color/
2020
WPT Display: open
@@ -150,7 +150,8 @@ Introduction {#intro}
150150
Colors in CSS are represented by the <dfn export><<color>></dfn> type:
151151

152152
<pre class='prod'>
153-
&lt;color> = <<color-base>> | currentColor | <<system-color>> | <<device-cmyk()>> | <<light-dark()>>
153+
&lt;color> = <<color-base>> | currentColor | <<system-color>> |
154+
<<contrast-color()>> | <<device-cmyk()>> | <<light-dark()>>
154155
155156
<dfn>&lt;color-base></dfn> = <<hex-color>> | <<color-function>> | <<named-color>> | <<color-mix()>> | transparent
156157
<dfn>&lt;color-function></dfn> = <<rgb()>> | <<rgba()>> |
@@ -167,6 +168,7 @@ Introduction {#intro}
167168
* ''currentColor'' (which depends on the value of the 'color' property)
168169
* a <<system-color>> (which depends on the color mode)
169170
* <<light-dark()>> (which depends on the color mode)
171+
* <<contrast-color()>> (which depends on the color mode)
170172
* <<device-cmyk()>> (which has no colorimetric basis)
171173

172174
Nor are any of those values used inside <<color-mix()>>

0 commit comments

Comments
 (0)