Skip to content

Commit 2dc7de6

Browse files
authored
[css-color-5] Fix definition of color-contrast (#6187)
According to the Value Definition Syntax, parentheses are to be interpreted as representing their corresponding tokens. For frouping, brackets must be used: https://drafts.csswg.org/css-values/#value-defs
1 parent 057424c commit 2dc7de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-color-5/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ Selecting the most contrasting color: the ''color-contrast()'' function {#colorc
478478
with the keyword 'to'.
479479

480480
<pre class='prod'>
481-
<dfn>color-contrast()</dfn> = color-contrast( <<color>> vs <<color>>#{2,} ( to [<<number>> | AA | AA-large])? )
481+
<dfn>color-contrast()</dfn> = color-contrast( <<color>> vs <<color>>#{2,} [ to [<<number>> | AA | AA-large]]? )
482482
</pre>
483483

484484
The keyword 'AA' is equivalent to 4.5, and the keyword 'AA-large' is equivalent to 3.

0 commit comments

Comments
 (0)