W3C home > Mailing lists > Public > www-style@w3.org > April 2012

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Wed, 18 Apr 2012 10:32:20 +0200
Message-ID: <4F8E7C14.5080700@kozea.fr>
To: Brian Manthos <brianman@microsoft.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, Rudolph Gottesheim <r.gottesheim@loot.at>, "www-style@w3.org" <www-style@w3.org>
Le 17/04/2012 22:01, Brian Manthos a écrit :
> My curiosity is more about...
> Why is "perfect gray" special vs. the near-grays?
> For example, are designers only interested in rgb(22, 22, 22,<somealpha>) or also rgb(22, 27, 32,<somealpha>)?

This is only a single data point, but I asked a designer colleague about 

"Perfect" grays (each RGB channel at the same value) with alpha are used 
a lot for backgrounds and shadows. A shorthand (however it is named) 
that allows not to repeat the value would help greatly, especially when 
tweaking the value.

Near-grays are used sometimes to give some "temperature" to the color, 
but not nearly as often as perfect grays (which are more neutral).

Simon Sapin
Received on Wednesday, 18 April 2012 08:32:53 UTC

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