4 ms·
Unfortunately the tilde selector is crippled: it doesn't target all siblings, only the ones after the base selector. To illustrate: <p>1</p> <p class=
by ricardobeat 15y ago
Unfortunately the tilde selector is crippled: it doesn't target all siblings, only the ones after the base selector.
To illustrate:
<p>1</p>
<p class="two">2</p>
<p>3</p>
.two ~ p { color:red; }
// only "3" will be red
That prevents what would be the most useful cases, like unmarking sibling menu items, slides and the like.