News for hackers. Stuff that matters.
Re:The Tilde is an Amazing CSS Selector by ricardobeat on Thursday May 17, 2012 @12:46AM (#3985474)
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.

There are no comments on this comment yet.