W3C home > Mailing lists > Public > www-style@w3.org > November 2007

Re: [CSS3 Text] shadow stacking levels

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 4 Nov 2007 15:22:36 -0500
To: www-style@w3.org
Message-ID: <20071104202236.GB8344@ridley.dbaron.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:56 GMT