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

On May 9, 2013, at 3:05 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

>> Instead of having different functions for color effects like changing the
>> brightness like Lea said earlier, the color() function could also do this:
>> 
>> color(#ff4500, saturation - 20%);
>> color(orangered, luminance 50%);
>> 
>> Not sure if this approach is better than having different functions, though.
> 
> Yes, this is my preferred solution now.

I don't get it. If you have to include the color inside the that you are going to modify, that is a considerable shortcoming. I'd much rather have it as this: 

color: #ff4500; color-adjust(saturation - 20%);
background-color: orangered; color-adjust(luminance 50%, background-color, box-shadow, border-color);

This way, I don't have to know the base color(s) in order to adjust a whole bunch of them. I could lighten all the elements of a certain class, make a whole bunch of things have translucent backgrounds, etc. without picking each color separately. 

Received on Friday, 10 May 2013 15:29:47 UTC