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

Re: [css3-selectors] :parent selector

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 25 Sep 2006 18:01:12 +0200
To: "Mihai Sucan" <mihai.sucan@gmail.com>
Cc: www-style@w3.org
Message-ID: <ioufh2pem8hh5q7aara63987fugt3q81vq@hive.bjoern.hoehrmann.de>

* Mihai Sucan wrote:
>Yes, I have searched the archives and I know this has been requested many  
>times before. However, I have a slightly different proposal and perhaps  
>it's not as inefficient as others (performance-wise).
>New pseudo-thing :parent.
><p class="sample">example</p>
>.sample:parent { color: red } which makes "testing" and "example" colored  
>in red.

This is not an appropriate use of pseudo-classes; they define additional
constraints for whatever is already matched by the rest of the selector;
in this case I would read the selector as e.g. "any element of class
example that is also a parent of another element".
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 25 September 2006 16:01:30 UTC

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