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: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Sun, 24 May 2020 22:55:33 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-633312655-1590360932-sysbot+gh@w3.org>
The separator should definitely not be a space. Spaces are less separating than commas (think of natural language) so it looks like the first two colors are grouped together and separated from the first.

I'd support a keyword if there was a natural fit, but that doesn't seem to be the case, and unnatural keywords are suboptimal. Not sure about combining slashes and commas either, I can't think of any precedent and I think for most people their relative precedence is undefined.

There is precedent here for commas: In gradients, the gradient parameters are comma-separated from the color stop list, even though they are not part of the alternatives listed. I'd vote to just go with that here too.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5087#issuecomment-633312655 using your GitHub account
Received on Sunday, 24 May 2020 22:55:35 UTC

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