Skip to content

Commit b52c649

Browse files
committed
[css-color-5] Summarise what color-contrast() does in the intro paragraph
1 parent 096d87d commit b52c649

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

css-color-5/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,10 @@ Selecting the most contrasting color: the ''color-contrast()'' function {#colorc
753753
(typically a background, but not necessarily),
754754
secondly, a list of two or more colors,
755755
and thirdly, an optional target <a href="https://www.w3.org/TR/WCAG21/#contrast-minimum">luminance contrast</a> [[!WCAG21]].
756+
It <a href="#winner">returns</a> the first color in the list
757+
to meet or exceed the specified target contrast
758+
or, if no target is given,
759+
the color in the list with the greatest contrast.
756760

757761
The single color is separated from the list
758762
with the keyword <css>vs</css>

0 commit comments

Comments
 (0)