Re: [CSS3 Text] shadow stacking levels

On Saturday 2007-11-03 01:03 -0400, fantasai wrote:
> Unlike text-decoration, text-shadow according to its current CSS3 Text 
> definition
> inherits and is painted by each text run's parent element. With that 
> premise,
> given the style rule
>   span { text-shadow: ...; }
> the HTML snippets
>   <span>sometext</span>
> and
>   <span>some</span><span>text</span>
> won't be rendered the same: the shadow of the next element will overlap the
> foreground text of the previous. That just looks wrong. Is there some
> way to specify text-shadow so that that doesn't happen?

It sounds like you want all the shadows for an element to be painted
at the same layer, so you should say that the text shadow for an
element is painted (for all the text within it, including text
inside descendant elements) in a layer after (above) its border and
background, but for each text by the parent element of the text (so
that the shadow moves with relative positioning).

How should text-shadow paint relative to underline and overline
text-decoration?  That might make this complicated.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Monday, 5 November 2007 03:26:01 UTC