Re: [csswg-drafts] [css-color] Unnecessary comma in color()

I know we've resolved on this now, and I hate to reopen this can of 
worms, but after seeing a few code examples with the new syntax, I'm 
having serious doubts that this was a good decision. It's fairly hard 
to tell where the parameter boundaries are, especially with certain 
fonts and characters, and especially when commas and decimal points 
are also present. E.g. look at these examples:

color: lch(55.3 84.5 10.25, #F06);
fill: lch(85.5 43.1 79.1);
color: lab(55.3 83.1 15.0 / 75%, #F06);

compare with:

color: lch(55.3, 84.5, 10.25, #F06);
fill: lch(85.5, 43.1, 79.1);
color: lab(55.3, 83.1, 15.0, 75%, #F06);

(using the variable width font on purpose)

Is it just me, or do your eyes struggle less to separate the 
parameters in the second example?

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/266#issuecomment-265616792 
using your GitHub account

Received on Thursday, 8 December 2016 00:25:49 UTC