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

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