Re: [csswg-drafts] [css-color-5] color-contrast needs another comma (#5087)

> This produces the odd (to my eyes) usage like color-contrast(wheat tan, sienna); the lack of a comma between wheat and tan looks very strange!

It does, but if I understand correctly the new world of comma usage means that commas are used to separate alternatives. Which is why we don't recommend `rgb(r%, g%, b%)` anymore as green is not an alternative to red.

So the first argument (`wheat`) has a single value while the second argument is a comma-separated list of alternatives.

I'm not against the use of a separator but that separator should not be a comma.

I like the suggestion by @fantasai  to use a slash.

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

Received on Sunday, 24 May 2020 16:41:44 UTC