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

RE: draft-ietf-html-style-00.txt & class as a general selector

From: Hakon Lie <howcome@w3.org>
Date: Thu, 7 Dec 1995 10:30:53 +0100
Message-Id: <199512070930.KAA15610@www4.inria.fr>
To: cwilso@microsoft.com
Cc: <mjhanna@sandia.gov>, <www-style@w3.org>, <html-wg@oclc.org>
cwilso@microsoft.com writes:

 > I *WOULD* like to see, however, the ability to set style properties on a 
 > class independent of the element name.  E.g.: [CLASS="foo"] { color:blue }
 > 
 > Should this be allowed in CSS level 1?  It is similar to the 
 > TAG[ATTRIBNAME="value"] selection described in the sketch of Level 2 in the 
 > fifth draft spec.  It would seem an intelligent thing to add to Level 1, 

Yes, we plan to put this in. Various notations have been suggested:

 [CLASS="foo"] { color: blue }
 *.foo { color: blue }
 .foo { color: blue }

The first one is verbose. The second introduces wildcards which CSS1
isn't quite ready for (people would e.g. expect "H?.foo" to work). The
last reminds old-timers of ?roff, but otherwise goes well along with a
principle in CSS1 context-sensitive selectors: wildcards are there by
default.

Regards,

-h&kon

Hakon W Lie, W3C/INRIA, Sophia-Antipolis, France
http://www.w3.org/People/howcome  howcome@w3.org
Received on Thursday, 7 December 1995 04:32:21 GMT

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