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

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

From: Brian Manthos <brianman@microsoft.com>
Date: Wed, 18 Apr 2012 20:14:30 +0000
To: Rudolph Gottesheim <r.gottesheim@loot.at>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <4031779A10373C4AB7B9FBAD218A8BAC062535@CH1PRD0310MB391.namprd03.prod.outlook.com>
Thanks for the info.


Rudolph Gottesheim:
> The use cases I was talking about are, as I said, mostly shadows. And most of the time
> you don't want a color shift in your shadow. You just want to darken part of the background.

Can you elaborate on what you mean by "color shift"?  I'm curious if you mean something like "just multiple each color channel by a fixed constant" or something else.

Some examples off the top:
	#020202, #010101	(divide each channel by 2)
	#020802, #010401	(divide each channel by 2)
	#020802, #010601	(divide each channel by 1.5, then round)
	#ffffff, #080C08		(50% drop in R/B, 25% drop in G)
	#44CC44, #88FF88	(double each channel with clamping)



Rudolph Gottesheim:
> So my proposal was actually more about darkening and brightening with color, rather than an actual shorthand for gray, I guess.

This was one of my theories as well. :)




Received on Wednesday, 18 April 2012 20:16:10 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:13 UTC