Added switch for before/after psuedo elements.