3 ms·
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
by alwillis 11y ago
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 http://www.w3.org/TR/selectors4/#matches
- andreyvit 11y agoI think that, no, the point was to style elements A that happen to have B inside, while :matches will apply to elements B that are wrapped in A.