Account for pseudo-classes and pseudo-elements in selector specificity
Account for pseudo-classes and pseudo-elements in selector specificity

Does not account for the old pseudo-element syntax (single colon), such
cases are counted as pseudo-classes.

Fixes #3056

dompdf/dompdf,dompdf/dompdf