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

Re: small selector syntax addition

From: Daniel Glazman <glazman@netscape.com>
Date: Thu, 02 May 2002 12:21:14 +0200
Message-ID: <3CD1131A.6010004@netscape.com>
To: www-style@w3.org
Daniel Brooks wrote:

>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.
>

I agree with the usefulness.
That was the purpose of the :subject pseudo, dropped between a WD and 
the CR.
I have a working implementation of this in a tool of mine, using a 
transformation language derived from CSS, and it works just fine.

</Daniel>
Received on Thursday, 2 May 2002 06:18:07 GMT

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