Re: [csswg-drafts] [css-color-4] limited use of contrast adjuster

On second thought, maybe it would be better to split this into two adjusters:

- `contrast-pick( $color1 $color2 $color3? … )` - picks the color with the highest contrast. (usecase 1)
- `contrast-adjust( $base $contrast? )` - mixes the color with black or white until it has a minimum contrast of `$contrast` to `$base`. (usecase 2)

Note that `color( #050 contrast-pick( #002, #f00 ) contrast-stretch( #050 4.5 ) )` will pick the darker `#002` in the first step and increase whiteness in the second one. If this was a single adjuster, that behavior could be different.

GitHub Notification of comment by xi
Please view or discuss this issue at using your GitHub account

Received on Friday, 21 July 2017 07:08:02 UTC