Im trying to apply a CSS style to a parent element if it has a specified child element. According to this doc it's possible: http://dev.w3.org/csswg/selectors-4/#relational
So when I put that into code, it doesn't seem to be working: https://jsfiddle.net/2rabacg7/
How come it's not working?
HTML
<div class="outter">
<div class="yes-color">
text
</div>
</div>
<br/>
<div class="outter">
<div class="no-color">
text
</div>
</div>
CSS
.outter:has(> .yes-color) {
background-color: red;
}