Is there a css way to select elements of X type which are after element Y type containing Z type elements?
Given the following html, i could only after the Z type, not after the Y type containing Z.
.y .z:after {
color: green;
/* x is not green because it's after y, not z */
}
<span class="y">
y
<span class "z">
z
</span>
</span>
<span class="x">
x
</span>