div with class labelced-message, and following is a div with class labelced-note. What I want to do is to select the message div, but only if there is a note div following (not directly). The reason why I want that is I'm making a MediaWiki template. Something similar to the ~ selector, but the other way around. Instead of an element preceded by another, I want to select an element followed by another. In other words I'm trying to select an element that has a sibling following.div.labelced-note < div.labelced-message.