W3C home > Mailing lists > Public > www-style@w3.org > July 2003

RE: Comments in selectors: CSS1 versus later

From: Chris Moschini <Chris.Moschini@amdocs.com>
Date: Mon, 7 Jul 2003 12:48:41 -0500
Message-ID: <3DB269E1BEC8134084EAA64AD4A1E0CF04C879@stlmail1.corp.amdocs.com>
To: www-style@w3.org
> From: Kai Lahmann [mailto:kl@3dots.de]
> 
> if you ask me, there's no use of allowing a comment inside a 
> selector. Before 
> yes, after also - but inside?

I can see how this would become useful in long selectors. A verbose example:

div.container > div.heading /* get heading */
> ul > li > ul.users > li /* get only lists that contain user lists */
> span.name {
	color: #f00;
}

Here a fairly complex selector (the real power of CSS3 and you might say CSS2) is used, but clarified for other authors line by line.


-Chris "SoopahMan" Moschini
http://hiveminds.info/
http://soopahman.com/

(this is a public mailing list - ignore attachment)
-------------------------------------------------------------------------------------

The information contained in this message is proprietary of Amdocs,

protected from disclosure, and may be privileged.

The information is intended to be conveyed only to the designated recipient(s)

of the message. If the reader of this message is not the intended recipient,

you are hereby notified that any dissemination, use, distribution or copying of 

this communication is strictly prohibited and may be unlawful. 

If you have received this communication in error, please notify us immediately

by replying to the message and deleting it from your computer.

Thank you.

-------------------------------------------------------------------------------------
Received on Monday, 7 July 2003 13:49:31 GMT

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