Don't misidentify pseudo selector/element as a property while parsing CSS.

This fixes issue #9840.

@redmunds Can you review this since you're familiar with this code?