I've got a div that will contain child elements. I want to apply a background image to the div, only when it contains at least one element matching a specific class name.

Is this possible with css3?

For example

Code:
.footer includes:.box1 {//apply a background}