W3C home > Mailing lists > Public > www-style@w3.org > May 2013

Re: [css-color] Have you considered standardizing a rgba(#RRGGBB, <alpha-value>) notation?

From: Sam L'ecuyer <sam@cateches.is>
Date: Thu, 9 May 2013 17:18:22 -0400 (EDT)
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "Brad Kemper" <brad.kemper@gmail.com>, "François REMY" <francois.remy.dev@outlook.com>, "Lea Verou" <lea@w3.org>, "Sebastian Zartner" <sebastianzartner@gmail.com>, "Jake Archibald" <jaffathecake@gmail.com>, "Šime Vidas" <sime.vidas@gmail.com>, "www-style list" <www-style@w3.org>
Message-ID: <1368134302.558810246@apps.rackspace.com>

> The first one seems to mean that the red channel is set to 3/4 of the alpha (opacity) channel. I don't know what the second one is supposed to mean.

As far as I know, opacity doesn't get applied to individual color channels.
As long as all of these resolve to the same thing, I'm for it.

color(#ff4500, alpha 50%);
color(orangered, alpha 50%);
color(255, 69, 0, .50);
color(255, 69, 0,alpha * .5);

Received on Thursday, 9 May 2013 21:18:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:11 UTC