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).
color()'s grammar is:
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).