Re: [css3-selectors] :parent selector

* 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.
>
><div>
><p class="sample">example</p>
>testing
></div>
>
>.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