Skip to content

Commit db3f508

Browse files
committed
[css-color-5][editorial] fix bikeshed autolink syntax for max, white, black
1 parent f2a6771 commit db3f508

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

css-color-5/Overview.bs

+6-7
Original file line numberDiff line numberDiff line change
@@ -2534,20 +2534,20 @@ or any other color or monochrome output device which has been characterized.
25342534
<dfn export>contrast-color()</dfn> = contrast-color( <<color>> max? )
25352535
</pre>
25362536

2537-
If 'max' is specified, the function computes to 'white' or 'black',
2537+
If ''max''' is specified, the function computes to ''white'' or ''black'',
25382538
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''.
25402540

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),
25422542
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.
25452545

25462546
Note: The precise requirement for how close these colors need to be to white and black
25472547
and what color difference measure to use for that are still under discussion.
25482548

25492549
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.
25512551

25522552
Note: Future versions of this specification are expected to introduce more control over
25532553
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.
36923692
parsing/color-valid-lab.html
36933693
parsing/color-valid-rgb.html
36943694
parsing/color-valid-system-color.html
3695-
system-color-highlights-vs-getSelection-001.html
36963695
border-color-currentcolor.html
36973696
currentcolor-004.html
36983697
oklab-l-over-1-1.html

0 commit comments

Comments
 (0)