W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: Fully transparent text and text-shadow

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 7 Oct 2008 14:01:56 +1300
Message-ID: <11e306600810061801n635f3c87rcd1f960e923fdb0a@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: "David Hyatt" <hyatt@apple.com>, "www-style@w3.org List" <www-style@w3.org>
On Tue, Oct 7, 2008 at 11:47 AM, L. David Baron <dbaron@dbaron.org> wrote:

> On Tuesday 2008-10-07 11:24 +1300, Robert O'Callahan wrote:
> > On Tue, Oct 7, 2008 at 7:58 AM, David Hyatt <hyatt@apple.com> wrote:
> >
> > > Should fully transparent text still cast a shadow via text-shadow?
> > >  Firefox's implementation does... WebKit's does not.  We can make this
> work
> > > either way in WebKit, but it would be good for this to be explicitly
> > > specified.
> >
> > I think that's just a bug that we'll be fixing shortly.
>
> Why add extra rules to the spec and extra code to create a
> discontinuity?  The color of the text doesn't normally have any
> influence on the color of its shadows.
>
> Or if text is rgba(0, 0, 0, 0.01), should we be multiplying that
> alpha component into the specified shadow colors as well?
>

You're right, I was mistaken. I was thinking of another bug where we would
paint fully-transparent text-decoration shadows with the foreground color
(fixed on trunk).

So yeah, the text color does not affect shadows which have their own
explicit color, and the same should be true for the text color's alpha
channel, so fully-transparent text should be able to cast a shadow.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Tuesday, 7 October 2008 01:02:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:15 GMT