@@ -2534,20 +2534,20 @@ or any other color or monochrome output device which has been characterized.
2534
2534
<dfn export>contrast-color()</dfn> = contrast-color( <<color>> max? )
2535
2535
</pre>
2536
2536
2537
- If 'max' is specified, the function computes to 'white' or 'black' ,
2537
+ If '' max'' ' is specified, the function computes to '' white'' or '' black' ',
2538
2538
depending on which of the two produces _maximum_ color contrast for text when the input color is used as a solid background.
2539
- If both colors produce the same contrast, the function should return 'white' .
2539
+ If both colors produce the same contrast, the function should return '' white' ' .
2540
2540
2541
- If 'max' is omitted, the function computes to a <em> very light</em> or <em> very dark</em> color (which <em> may</em> still be white or black),
2541
+ If '' max'' ' is omitted, the function computes to a <em> very light</em> or <em> very dark</em> color (which <em> may</em> still be white or black),
2542
2542
which will contrast well with the input color when used as a text color and the input color is used as a solid background.
2543
- The function MUST return a light color if it would have returned 'white' if 'max' were specified,
2544
- and a dark color if it would have returned 'black' if 'max' were specified.
2543
+ The function MUST return a light color if it would have returned '' white'' if '' max' ' were specified,
2544
+ and a dark color if it would have returned '' black'' if '' max' ' were specified.
2545
2545
2546
2546
Note: The precise requirement for how close these colors need to be to white and black
2547
2547
and what color difference measure to use for that are still under discussion.
2548
2548
2549
2549
The precise color contrast algorithm for determining whether to output a light or dark color
2550
- is UA-defined at this level, as is the precise color produced when 'max' is omitted.
2550
+ is UA-defined at this level, as is the precise color produced when '' max'' ' is omitted.
2551
2551
2552
2552
Note: Future versions of this specification are expected to introduce more control over
2553
2553
both the contrast algorithm(s) used, the use cases, as well as the returned color.
@@ -3692,7 +3692,6 @@ No new privacy considerations have been reported on this specification.
3692
3692
parsing/color-valid-lab.html
3693
3693
parsing/color-valid-rgb.html
3694
3694
parsing/color-valid-system-color.html
3695
- system-color-highlights-vs-getSelection-001.html
3696
3695
border-color-currentcolor.html
3697
3696
currentcolor-004.html
3698
3697
oklab-l-over-1-1.html
0 commit comments