Well, this is usually not possible, but you can hack it in some way.
So, for example, if you want to do this:
.active:(all-before) {
border-left: solid 1px #C0FFEE;
}
You can do it:
a {
border-left: solid 1px #C0FFEE;
}
a.active, a.active~a {
border-left: none;
}
So, you put the style you want in the first selector, and then disable this construct in the second selector.
Working example: http://jsfiddle.net/prrd14u2/
javascript, jquery .