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

> it's hard to visually parse a color consisting of all percentages. 

Nothing but the alpha can be a percentage. The rest are numbers.

> And imho percentages are the most natural way to represent a range 
between 0 and 1, so they should be comfortable to use for all of the 
color coordinates.

The color coordinates aren't necessarily 0-1. That's common, but 
there's nothing requiring that.  They're not appropriate to be 
percentages.

> I was thinking of something along these lines,

There's no need for any of those slashes; they serve no purpose for 
disambiguation.  And there's no need for a comma separating the 
fallback from the rest, for the same reason.  color() is also allowed 
in fallback, intentionally - you can fallback to a different 
colorspace.

> Is it when a color profile can't be used because it doesn't fit 
within the gamut of the device?

No, it's for when a color profile is invalid or unknown.  Color 
profiles already define how to scale themselves down to fit smaller 
gamuts.

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

Received on Thursday, 14 July 2016 05:44:03 UTC