W3C home > Mailing lists > Public > www-style@w3.org > June 1996

selectors in CSS

From: Hakon Lie <howcome@w3.org>
Date: Wed, 26 Jun 1996 15:51:57 +0200
Message-Id: <199606261351.PAA08324@www4.inria.fr>
To: lauren@sqwest.bc.ca (Lauren Wood)
Cc: www-style@w3.org, html-erb@w3.org
Lauren Wood writes:

 > Are authors allowed to specify a context using just the class for
 > ancestors, e.g. ".foo P" or the id, e.g. "#foo P"? This would mean any P
 > with an ancestor of class foo, independent of the element type of the
 > ancestor.

Yes. The specification [1] says:

  "Context-sensitive selectors can look for tags, classes or ids"

".. and combinations of these." should probably be added at the end of
that sentence.

[1] http://www.w3.org/pub/WWW/TR/WD-css1

Regards,

-h&kon

Hakon W Lie, W3C/INRIA, Sophia-Antipolis, France
http://www.w3.org/people/howcome  howcome@w3.org
Received on Wednesday, 26 June 1996 09:52:04 GMT

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