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

small selector syntax addition

From: Daniel Brooks <db48x@yahoo.com>
Date: Thu, 2 May 2002 02:44:22 -0700 (PDT)
Message-ID: <20020502094422.32769.qmail@web12303.mail.yahoo.com>
To: www-style@w3.org
I'd like to propose an addition to the selector syntax that I feel
would be very useful. I have a feeling that the same effect could be
accomplished with the all-powerful :matches selector, but I'm not sure.

What I'd like to be able to do is match an element not at the end of
the chain, but without a lot of mess. Using parenthesis seems like the
easiest way to go about it:

#menu (li) > a[href] { /* match an li inside the #menu that has an
anchor with an href as a child */ }

Leaving out the parenthesis would naturally be the same as putting them
around the last element in the chain.



Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
Received on Thursday, 2 May 2002 05:44:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:01 UTC