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

Re: Recommended practice on selector compatibility

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 4 Dec 2002 20:35:59 +0000 (GMT)
To: Christian Roth <roth@visualclick.de>
Cc: www-style Mailing List <www-style@w3.org>
Message-ID: <Pine.LNX.4.21.0212041926560.7980-100000@dhalsim.dreamhost.com>

On Wed, 4 Dec 2002, Christian Roth wrote:
>>
>> By following the escape with a space (which is ignored), as in:
>>
>>   "\0041 B"
>>
>> ...which is identical to:
>>
>>   "AB"
> 
> Does this actually work in CSS1?

No (as you say, CSS1 doesn't expect a space after escapes) but that
doesn't matter, because all the major browsers support the CSS2 way:

   http://www.hixie.ch/tests/adhoc/css/parsing/escaping/003.html

There aren't any CSS1 compliant UAs to my knowledge.

(Note: IE5 and Konqueror suck big time and get both the CSS1 and CSS2 ways
wrong. I think they might not support escapes at all. On Windows, Opera,
Mozilla, and IE6 pass it as CSS2 UAs.)

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 4 December 2002 15:36:07 GMT

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