Fixed pseudo-element selectors

Closes #1532