W3C home > Mailing lists > Public > www-talk@w3.org > May to June 2004

Re: reverse nested selectors

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 13 Jun 2004 14:37:47 +0200
To: gerard <w3c@rathersimple.com>
Cc: www-talk@w3.org
Message-ID: <40ce49b4.944910148@smtp.bjoern.hoehrmann.de>

* gerard wrote:
>I'd like so suggest that an operator to reverse the matching order of  
>selectors could be a very useful thing.

Gerard, a better place for such suggestions would be the www-style
mailing list, I would suggest you post your message there. However,
this particular functionality, even though slightly more flexible,
has been proposed long ago for css3-selectors, see

  http://www.w3.org/TR/2000/WD-css3-selectors-20001005/#subject-pseudo

for the :subject pseudo-class, you would use it like

>Ex:
><div class="ColorBackground>
>	<img class="AlphaImage">
></div>
>
>If one wanted to select any <div> that contained an image with class  
>"AlphaImage", there is no way to do so.

div:subject img.AlphaImage. However, the feature was dropped from the
draft due to implementation concerns which I assume equally apply to
your proposal. I would also suggest to search the list archives as
there are a number of proposals with similar functionality.

regards.
Received on Sunday, 13 June 2004 08:38:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:28 GMT