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

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