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

Re: Idenitfier equivalence in CSS

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 19 May 2002 23:14:40 +0100
Message-ID: <3CE823D0.8060206@hixie.ch>
To: Etan Wexler <ewexler@stickdog.com>
CC: www-style@w3.org
Etan Wexler wrote:
 > When are CSS identifiers equivalent?
 >
 > I would identify two types of variation in identifiers: case and escaping.

I believe the answers are intended to be as follows:

                                  Case Equivalent?     Escaping Equivalent?
 >  namespace prefixes,                 yes                    yes
 >  type selectors,                     no [1]                 yes
 >  class selectors,                    no [1]                 yes
 >  ID selectors,                       no [1]                 yes
 >  attribute names,                    no [1]                 yes
 >  attribute values,                   no [1]                 yes
 >  pseudo-class names,                 yes                    yes
 >  pseudo-element names,               yes                    yes
 >  property/descriptor names,          yes                    yes
 >  dimension units,                    yes                    yes
 >  keyword values,                     yes                    yes
 >  hash color values,                  yes                    yes
 >  system component values             yes [1]                yes
 >    (as font names),
 >  author-constructed                  yes                    yes
 >    component values
 >    (as counters, pages),
 >  function-notation names             yes                    yes
 >    (as in URI, colors,
 >     and so on).

[1] depends on host environment conventions


See:
    http://www.w3.org/TR/REC-CSS2/syndata.html#q4
    http://www.w3.org/TR/REC-CSS2/syndata.html#tokenization


--
Ian Hickson
``The inability of a user agent to implement part of this specification due to
the limitations of a particular device (e.g., non interactive user agents will
probably not implement dynamic pseudo-classes because they make no sense
without interactivity) does not imply non-conformance.'' -- Selectors, Sec13
Received on Sunday, 19 May 2002 18:14:44 GMT

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