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: Wed, 18 Feb 2009 17:42:35 +1300
Message-ID: <11e306600902172042u4837b410pd3c17bf9692a6930@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, David Hyatt <hyatt@apple.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style@w3.org W3C" <www-style@w3.org>
On Wed, Feb 18, 2009 at 5:31 PM, Brad Kemper <brad.kemper@gmail.com> wrote:

> Since image-borders are mostly replacements for normal borders, and since
> box-shadow is something that looks as if the border-box or border is casting
> a shadow, it makes sense that (if box-shadow is going to be generated) it
> would be as if the images of the image-border were casting the shadow. But
> inset shadows are not shadows of the border. They are shadows of "everything
> outside the padding edge",


Right. Based on that I would say, when border-image present, treat the area
outside the border-edge as opaque, give the border area the transparency of
the border-images, and treat the area inside the padding area as
transparent, then cast the shadow of that.

Basically, if you draw an inset shadow along with border-image then we
assume your images define a custom shape for the inner border and the outer
border is the border-box. If you draw an outset shadow along with
border-image then we assume your images define a custom shape for the outer
border and the inner border is the padding-box.

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 Wednesday, 18 February 2009 04:43:19 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:16 GMT