Re: Parent Combinator / Parent pseudo-class

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