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

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Mon, 04 Jul 2016 16:10:49 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-163704723-1467648647-sysbot+gh@w3.org>
tabatkins has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-color] Unnecessary comma in color() ==
color()'s grammar is:

```
<ident> , <args> , <alpha>?, <fallback>?
```

The comma between the args and alpha is required, as we don't know how
 many args they are and both can be numbers.  The comma between the 
fallback and the preceding  stuff isn't strictly necessary, but it's 
pretty natural and matches up with other function's fallback 
arguments.

But the comma between the colorspace name and the arguments isn't 
necessary. There's no grammatical ambiguity possible, nor any strong 
tradition of comma usage in similar situations.

Can we remove it? Then we won't need any commas in the common case, 
like `color(adobe-rgb 255 0 0)`.

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/266 using your GitHub 
account
Received on Monday, 4 July 2016 16:10:56 UTC

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