Re: [csswg-drafts] [css-color-5] add target contrast ratio to color-contrast? (#4749)

I really like the latter idea (to me it feels more natural than the former), although I really have no idea if there's a mathematical way to derive an acceptable color while minimizing changes to the perceived color (I do imagine there is, though).

In my view, the whole point of a `color-contrast` function, especially when supplied a given minimum contrast ratio is to calculate a color that meets the minimum contrast requirement instead of "the best of what we have," which may not meet that contrast requirement. The former method may be confusing as well due to the way how `color-contrast` currently works, where it select _the best_ of a list of colors, but when supplied a minimum contrast ratio, it selects _the worst_ of a list of colors, in a sense.

To me, it feels much more intuitive always selecting the best possible color from the list and then adjusting it with minimal impact to the perceived color to meet the given contrast ratio.

-- 
GitHub Notification of comment by devmattrick
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4749#issuecomment-582663545 using your GitHub account

Received on Wednesday, 5 February 2020 23:31:50 UTC