Skip to content

Commit 45b0b89

Browse files
committed
[css-color-5] Add WCAG 2.1 AAA values, fix w3c#6311
1 parent ff0278d commit 45b0b89

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

css-color-5/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,11 +565,13 @@ Selecting the most contrasting color: the ''color-contrast()'' function {#colorc
565565
with the keyword <css>to</css>.
566566

567567
<pre class='prod'>
568-
<dfn>color-contrast()</dfn> = color-contrast( <<color>> vs <<color>>#{2,} [ to [<<number>> | AA | AA-large]]? )
568+
<dfn>color-contrast()</dfn> = color-contrast( <<color>> vs <<color>>#{2,} [ to [<<number>> | AA | AA-large | AAA | AAA-large]]? )
569569
</pre>
570570

571571
The keyword <dfn value for="color-contrast()">AA</dfn> is equivalent to ''4.5'',
572-
and the keyword <dfn value for="color-contrast()">AA-large</dfn> is equivalent to ''3''.
572+
<dfn value for="color-contrast()">AA-large</dfn> is equivalent to ''3'',
573+
<dfn value for="color-contrast()">AAA</dfn> is equivalent to ''7'', and
574+
<dfn value for="color-contrast()">AAA-large</dfn> is equivalent to ''4.5'' .
573575

574576
<div class="example">
575577
<pre class="lang-css">color-contrast(wheat vs tan, sienna, var(--myAccent), #d2691e)</pre>

0 commit comments

Comments
 (0)