W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2016

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Jul 2016 05:43:55 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-232562284-1468475033-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:00 UTC