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: Alan Gresley <alan@css-class.com>
Date: Fri, 10 May 2013 12:00:48 +1000
Message-ID: <518C54D0.1010502@css-class.com>
To: francois.remy.dev@outlook.com
CC: 'Lea Verou' <lea@w3.org>, "'Tab Atkins Jr.'" <jackalmage@gmail.com>, 'www-style list' <www-style@w3.org>
On 10/05/2013 6:30 AM, Fran├žois REMY wrote:
> ┬▒ How about keywords?
>
> How, yes, I like things like
>
>      color(#aaa, 50% of alpha)
>      for #rgba(aa,aa,aa,50%)
>
> and
>
>     color(#aaaa,  10% more alpha, 100% more hue)
>     for the opposite color of #rgb(aa,aa,aa+10%)
>
> Maybe I'm dreaming too much ^_^

Whoa Whoa Whoa. Let's all slow down here. Let's not abuse syntax and 
something that works. Having color() as a value in a property of 
background-color or color is not necessary a good thing.

The original proposal was for setting alpha along with hexadecimal color 
notation and having that work with rbg().

If you want more or less hue, it should be relating to hsl() but in all 
honestly, what does it mean to have less hue? Hue is a particular color 
so all you can do is change the lightness or saturation of a particular hue.

Alan

-- 
Alan Gresley
http://css-3d.org/
http://css-class.com/
Received on Friday, 10 May 2013 02:01:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:29 UTC