<html><head><style>
.a > .b .c {
color: green;
}
.d + .e ~ .f {
color: green;
}
</style></head><body><divclass="a"><divclass="b"><divclass="b"><divclass="c">
This text should be green.
</div></div></div></div><divclass="d"></div><divclass="e"></div><divclass="e"></div><divclass="f">This text should also be green.</div></body></html>