Combines before and after selectors.