Re: parent selectors

Dylan Schiemann wrote:

> Has there been any thought given to adding parent
> selectors?  What I mean by the term parent selector
> would be to style a parent based on it matching a
> pattern for its child elements.

In the current Working Draft, this is achieved using the :subject
pseudo (I know, it's a bad syntax, but the idea is here).
See [1].

To select the DIV that contains P#foo, write DIV:subject > P#foo

[1] http://www.w3.org/TR/css3-selectors/#subject-pseudo

</Daniel>

Received on Wednesday, 29 November 2000 12:02:07 UTC