I want to make the following inner span disappear, if it's an only child:
<div class="foo">
<span></span>
</div>
i.e. the selector should not work in this case:
<div class="foo">
<span></span>
Some text
</div>
I tried :only-child
and :last-child
which don't work, I assume because of that "Some text" text.