I'm looking for a way to choose a parent if it has a decendent of class 'foo'. Is this possible using CSS..?
In the following example, I would want to choose parent (having class='B') as it has a descendent of 'foo'.
<parent class='A'>
<child>
<grand-child>
<grand-child class='boo'>
</child>
</parent>
<parent class='B'>
<child>
<grand-child>
<grand-child class='foo'>
</child>
</parent>