[csswg-drafts] [css-color] color({num}3,4) "shorthand"/alternate for rgb

grorg has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-color] color({num}3,4) "shorthand"/alternate for rgb ==
We should consider a version of color() that doesn't take a profile 
name and defaults to a version of rgb() but with sensible parameters.

e.g. color(1.0 0 0) is red, or rgb(255, 0, 0)
e.g. color(0 1.0 0 0.5) is 50% transparent green, or rgba(0, 255, 0, 
0.5)

Notice we don't have the weirdo mix of 0-255 and 0-1!!

In other words, if the first parameter is a number, the whole thing is
 a color in sRGB.


Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/275 using your GitHub 
account

Received on Wednesday, 6 July 2016 19:20:00 UTC