Re: [css4-color] Grayscale shorthand (with alpha)

Am 18.04.2012 14:03, schrieb Chris Lilley:
> What properties would you want it to have? For example, would 50% gray correspond to a color which is visually 50% between black and white?
>
> The CIE lightness (L*) has that property. L=0 is black, L=100 is the media white. L=50 is exactly a mid grey.
>
> It could be used by itself or as part of the CIE Lab or LCH color spaces (C and H are chroma and hue angle) - to give warm or cool greys for example.

I really don't know too much about color spaces, but I'd expect gray(.5) 
or gray(50%) or gray(127) - whatever syntax we end up with - to be an 
alias for rgb(127, 127, 127) and hsl(0, 0%, 50%).

So, yeah, basically the L of HSL.

Received on Wednesday, 18 April 2012 12:36:38 UTC