W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

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

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Sun, 24 May 2020 16:41:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-633257852-1590338501-sysbot+gh@w3.org>
> 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 https://github.com/w3c/csswg-drafts/issues/5087#issuecomment-633257852 using your GitHub account
Received on Sunday, 24 May 2020 16:41:44 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:07 UTC