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

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

From: Dean Jackson via GitHub <sysbot+gh@w3.org>
Date: Wed, 06 Jul 2016 19:19:49 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-164153186-1467832788-sysbot+gh@w3.org>
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

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