W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

Re: [csswg-drafts] [css-ui] Two different colours for a "double" style outline

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Sun, 19 Nov 2017 00:15:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-345481506-1511050541-sysbot+gh@w3.org>
Would parentheses help clarify? i.e. `(<color>{1,4})#`

Also, is the issue with the grammar declaration, or do you find the actual syntax confusing?

TBH I don't think it's great from a usability perspective. People don't think in chunks like "outer colors for all sides, inner colors for all sides, innermost colors for all sides", instead they think in terms of "colors for top side, colors for right side, colors for bottom side, colors for left side", unless they're the same for every side. However, we can't really translate that to syntax, because then we'd need to have comma-separated and **then** space-separated. But since the commas have lower precedence than spaces, we'd need parentheses to do that, which we don't have. 

What we have now is consistent with how other CSS properties are listified, but not ideal from a UX perspective. So, I suspect the longhands would probably be favored if the colors are different on each side, instead of using the space-separated and then comma-separated syntax.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1172#issuecomment-345481506 using your GitHub account
Received on Sunday, 19 November 2017 00:15:45 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 19 November 2017 00:15:48 UTC