Skip to content

Commit

Permalink
[css-color-6] Add note wrt multiple contrast algorithms
Browse files Browse the repository at this point in the history
Co-Authored-By: fantasai <725717+fantasai@users.noreply.github.com>
  • Loading branch information
LeaVerou and fantasai committed Oct 20, 2022
1 parent 57fe500 commit b7e5000
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions css-color-6/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ Computing a Contrasting Color: the ''contrast-color()'' function {#colorcontrast
[ [ <<color>> && [ tbd-fg | tbd-bg ] && <<target-contrast>>? ] |
[ <<color>> && [ tbd-fg | tbd-bg ] && <<target-contrast>>, <<color>># ] )
<<target-contrast>> = <<wcag2>>
<!-- Allow multiple algorithms in the future by using && operator instead of | for <<target-contrast>> additions.
See resolution in #7357 -->
</pre>


The only mandatory argument is the <dfn lt="contrast base color" local-lt="base color">base color</dfn>
against which the contrast is computed.
This is typically (but not necessarily) a background color.
Expand Down

0 comments on commit b7e5000

Please sign in to comment.