W3C home > Mailing lists > Public > www-style@w3.org > January 2006

Idea: parent selector

From: <w3ml@duaiv.net>
Date: Tue, 10 Jan 2006 15:25:27 -0500
Message-ID: <43C41837.10003@duaiv.net>
To: www-style@w3.org

Good day,

sometimes i like to have a "parent combinator", something like :
E < F : an E element parent of an F element
or
F::parent(E) : the E parent element of F
which will modify the parent when a special child is found.

Situations :
# match tag "item" parent of tag "content"
item < content { border-left-width:1ex; }
or why not :
# match tag "title" child of tag "item" parent to tag "link"
item < link > title { font-weight:bold; }
link::parent(item) > title { ... }

Not *often* used, but could, sometimes, be useful i think...


Anyway, i strongly support the "negation class", this one will really help!
Received on Wednesday, 11 January 2006 04:15:22 GMT

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