W3C home > Mailing lists > Public > www-style@w3.org > August 2004

:matches pseudo-class (Re: Nested and non-nested elements: pseudoclasses)

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Thu, 19 Aug 2004 18:45:19 +0200
Message-ID: <4124D91F.6050105@annevankesteren.nl>
To: David Zülke <dz@bitxtender.net>
CC: 'ACJ' <ego@acjs.net>, "'W. Leon Sutton, Jr.'" <wsuttonjr@hyponiqs.com>, www-style@w3.org

> What he wants is kind of a reference to other elements inside a selector. 

Such a proposal has been made. The syntax wasn't clear yet, but I 
thought it looked like:

   <foo><bar/></foo>

   foo:matches(bar){
    background:lime
   }

You will probably not see this in CSS3 tough. Maybe in CSS4 or as UA 
extensions.


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Thursday, 19 August 2004 16:45:59 GMT

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