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

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:
<foo>[content]</foo>
<blah>[content]</blah>
<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
saying?

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

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