W3C home > Mailing lists > Public > www-style@w3.org > March 1999

Re: The \ escape character in the "content" property.

From: Chris Lilley <chris@w3.org>
Date: Thu, 25 Mar 1999 22:22:36 +0100
Message-ID: <36FAA91C.4358B0F8@w3.org>
To: Nicolas Lesbats <nlesbats@etu.utc.fr>
CC: www-style@w3.org


Nicolas Lesbats wrote:
> 
> Hi,
> 
> CSS2 don't define, according to what I have read, the behavior of the
> "content" property with the following example. Suppose you have :
> 
>         E:after { content: "A word\AAnother word" }
> 
> How will the UA undertand the \ escape character ? Like \A or like \AA ?

The latter.

> Is this example CSS-conformant ? 

Yes, but \AA does not do what you want it to

> Is an white space required after any
> escape sequence ? And before ?


      E:after { content: "A word\A Another word" }

Will do what you want; the extra space delimits the escape sequence
(like ; delimits entities in XML).

--
Chris
Received on Thursday, 25 March 1999 16:25:27 GMT

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