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

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

From: W. Leon Sutton, Jr. <wsuttonjr@hyponiqs.com>
Date: Sat, 21 Aug 2004 09:19:47 -0400
Message-ID: <001d01c48781$897b59f0$931d4ed8@hyponiqs>
To: "Anne van Kesteren" <fora@annevankesteren.nl>, <www-style@w3.org>

Anne van Kesteren wrote:

> > What he wants is kind of a reference to other elements inside a
> 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.

No, no, you're missing the point.  I'm looking for non-nested elements.
<foo><bar /></foo> is a reference to parent and child nodes.

I'm looking for, more or less, something like:
<bar />

whereas the <foo>...</foo> and <bar /> elements are seemingly unrelated in
relative to the markup.  The idea is to control the behavior of <bar />'s
style through interaction with the <foo>...</foo> element.  See what I'm

-Leon Sutton
Received on Saturday, 21 August 2004 13:20:17 UTC

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