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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 18 Apr 2012 13:41:11 -0700
Message-ID: <CAAWBYDBcpBGcpN_twkn8Aaposn9f=zb1Vu30UapZpoSL71R8=g@mail.gmail.com>
To: Brian Manthos <brianman@microsoft.com>
Cc: Rudolph Gottesheim <r.gottesheim@loot.at>, "www-style@w3.org" <www-style@w3.org>
On Wed, Apr 18, 2012 at 1:14 PM, Brian Manthos <brianman@microsoft.com> wrote:
> 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.

I think you're misreading Rudolph.  When he says "you don't want a
color shift", I believe he's talking about your reference to a "'black
and white' muted photo effect", which is actually changing the color
of something.  Rudolph isn't attempting to do anything like that (and
that would indeed be best as a filter).

His examples show what he's asking for:
* creating a partially-transparent dark shadow
* putting a partially-transparent "dark" or "light" background on some
text placed over a busy image, to aid in establishing proper contrast

Both of these are handled, within current CSS, with
partially-transparent colors on the "gray" axis.

~TJ
Received on Wednesday, 18 April 2012 20:42:00 UTC

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