I would like to use CSS to hide a div if it does not contain any li descendents.
Given this:
<div>
I should be visible (red)
<ul>
<li>one</li>
</ul>
</div>
<div>
I should be hidden (blue)
<ul></ul>
</div>
What CSS can I use to select the second div and apply display:none (or border:1px solid blue for this demo)?
Here is a fiddle: https://jsfiddle.net/7yab2z27/