And still there are weird things like not being able to select all elements A which have B in them with a single CSS rule.
You mean like this?
:matches(A B) {
color: blue;
}
http://www.w3.org/TR/selectors4/#matches