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

Re: Drop-Shadow proposal

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 11 Sep 2009 11:40:04 -0700
Message-Id: <DCD78029-BBFC-486D-91D1-CF774DCA34EC@gmail.com>
To: David Hyatt <hyatt@apple.com>
Cc: www-style list <www-style@w3.org>
On Sep 11, 2009, at 10:57 AM, David Hyatt <hyatt@apple.com> wrote:

> "As mentioned previously, the default behavior is to cast a shadow  
> from the entire element. This means pre-rendering the element,  
> including borders, background, border-images, text, and non- 
> positioned child elements, and using that to cast a single shadow."
>
> Why non-positioned only?

It just seemed more useful to me that way, as positioned content would  
be more likely to be less closely associated in space with the element  
casting the shadow, and less likely that I would want to generate a  
single shadow from the item and it's positioned child. It would be  
easy to add a second shadow within the same rule that added position  
to the child.

> It seems like a property like this should behave like opacity (and  
> just establish a stacking context with a z-index of 0), with all the  
> same rules for consistency.

That would create individual shadows for each child, and I was trying  
to create a way to generate a single shadow for union of the element  
and it's children. 
Received on Friday, 11 September 2009 18:40:54 GMT

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