add css validity pseudo selectors

closes #718