W3C home > Mailing lists > Public > www-style@w3.org > December 2008

Re: [CSS21] text-transform on generated content?

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 31 Dec 2008 15:27:07 -0500
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org
Message-ID: <20081231202707.GA8723@pickering.dbaron.org>

On Monday 2008-12-29 13:49 -0800, fantasai wrote:
> L. David Baron wrote:
>>  * text-transform does apply to generated content
> If we wanted to call this out, we'd have to do that for a lot of
> other properties as well, e.g. white-space, the font properties,
> etc. If we're adding anything, it should probably be a blanket
> statement in 12.1 saying that all properties apply to :before and
> :after as if they were real elements.

I think there's more of an issue for text-transform than for other
properties (with the exception of white-space), because it's a
question of ordering.  The spec says that two things happen
(insertion of generated content strings and text transformation),
but it doesn't say which happens first, and the order does affect
the results.

That said, it may well be better to call out order-of-processing
issues in the definition of :before and :after in 12.1

>>  * generated content does not introduce word boundaries for
>>    'text-transform: capitalize'
> It should if you have
>   :before { display: block; }



L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Wednesday, 31 December 2008 22:19:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:42 UTC