W3C home > Mailing lists > Public > www-style@w3.org > February 2009

Re: [CSSWG] Minutes and Resolutions 2009-02-04: box-shadow and border-image

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 13 Feb 2009 11:43:56 +1300
Message-ID: <11e306600902121443l42cfd001mf4fe99416f8f4959@mail.gmail.com>
To: David Hyatt <hyatt@apple.com>
Cc: Brad Kemper <brad.kemper@gmail.com>, fantasai <fantasai.lists@inkedblade.net>, "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style@w3.org" <www-style@w3.org>
On Fri, Feb 13, 2009 at 11:22 AM, David Hyatt <hyatt@apple.com> wrote:

> I think Brad's point is that no shadow should appear under the original
> location of the padding box either.  It's a given that the shadow itself
> when offset will contain only transparent pixels in its own offset padding
> area,

Don't you mean "opaque pixels" here?
"An outer box-shadow casts a shadow as if the border-box of the element were

but the offset "border" portion of the shadow should also not appear behind
> the original padding box.

Sure, that's what I was trying to achieve.

> Basically you clip out the original padding box from any drawing you do
> right up front just as with normal box shadow, and then build/paint the
> shadow as you suggested.

And then paint the border-images over the top? I guess that's good enough.

It's actually kind of weird that an element with a transparent background
casts an opaque shadow. I didn't follow those discussions when they
happened; now I wish I had argued for the shadow to actually shadow the
element's content. Making the shadow depend on the alpha values of
border-images but not other kinds of borders, or the element's background or
content, seems weird.

"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
Received on Thursday, 12 February 2009 22:44:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:24 UTC