From 020cdb5a2e3dddb3b5033f1113a6e433dede69e5 Mon Sep 17 00:00:00 2001 From: Francois Daoust Date: Wed, 7 Apr 2021 10:07:21 +0200 Subject: [PATCH] [css-color-5] Fix definition of color-contrast 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 --- css-color-5/Overview.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css-color-5/Overview.bs b/css-color-5/Overview.bs index 15378a94bc1..5e7302ad985 100644 --- a/css-color-5/Overview.bs +++ b/css-color-5/Overview.bs @@ -478,7 +478,7 @@ Selecting the most contrasting color: the ''color-contrast()'' function {#colorc with the keyword 'to'.
-		color-contrast() = color-contrast( <> vs <>#{2,}  ( to [<> | AA | AA-large])? )
+		color-contrast() = color-contrast( <> vs <>#{2,}  [ to [<> | AA | AA-large]]? )
 	
The keyword 'AA' is equivalent to 4.5, and the keyword 'AA-large' is equivalent to 3.