W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: Parent Combinator / Parent pseudo-class

From: Joshua Cranmer <Pidgeot18@verizon.net>
Date: Fri, 25 Jul 2008 17:41:51 -0400
To: Brad Kemper <brkemper@comcast.net>
Cc: Francois Remy <fremycompany_pub@yahoo.fr>, Andrew Fedoniouk <news@terrainformatica.com>, Boris Zbarsky <bzbarsky@MIT.EDU>, www-style list <www-style@w3.org>
Message-id: <488A489F.9030400@verizon.net>

Brad Kemper wrote:
> I can really see no use case for a "has-child" pseudo-class to look at 
> all descendants.
I see only one case that would be common:

tr:has-grandchild(input:checked) -- to change the background of a row 
based on whether or not a checkbox was checked

Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
Received on Friday, 25 July 2008 21:43:11 UTC

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