Pseudo element selectors matching

CSS parsing and selector matching for pseudo element :before and :after