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

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