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 11:03:40 +1300
Message-ID: <11e306600902171403gf991a8emb21e5c6bc54806ff@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: David Hyatt <hyatt@apple.com>, Brad Kemper <brad.kemper@gmail.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style@w3.org" <www-style@w3.org>
On Wed, Feb 18, 2009 at 10:15 AM, fantasai <fantasai.lists@inkedblade.net>wrote:

> Is it possible to intelligently draw a complex shadow for this
> border-image?
>  http://dev.w3.org/csswg/css3-background/border.png
>  http://dev.w3.org/csswg/css3-background/borderresult.png
> Now imagine I said 'space' instead of 'round'.
>
> If you and roc are able to find a way to intelligently draw complex shadows
> for something like that, and are willing to implement it, I'll put it in
> the spec.
>

The real issue here is that using a box-shadow on an element with
transparent padding-box is bizarre, whether or not you're using
border-images. I don't know why the spec has us clip the padding-box out of
the shadow in the first place, since it can only lead to effects that
violate real-world physics.

If your diamond-border example had a solid padding-box background, and the
border-image was modified so the inside of the diamond border is filled with
the same background color, then drawing a diamond-shaped drop shadow for the
border would be easy and look good.

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, 17 February 2009 22:04:22 GMT

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