Re: [csswg-drafts] [css-media-queries-5] add clarification on applied order for multiple preferences (#4895)

> That said, Color 5 is working on a (still very early stages, don't look to its details as particularly informative of a final design yet) automatic contrast adjuster, where you can feed it two colors and a desired contrast ratio and it spits out one of the colors adjusted appropriately.

That isn't what it does (although there has been discussion about adding that functionality). You feed it a color, a list of colors (and optionally a contrast ratio) and it returns the first color  in the list that meets or exceeds that ratio. If no ratio is given, it returns the one in the list with the highest contrast.

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

Received on Thursday, 26 March 2020 17:00:05 UTC