Re: Drop-Shadow proposal

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 UTC