Three-column comparison
The ID column counts ID selectors. The middle column counts class selectors, attribute selectors, and pseudo-classes. The final column counts type selectors and pseudo-elements. Comparison proceeds from IDs to the middle column to the type column, stopping at the first difference. Universal selectors and combinators contribute zero, and counts never carry between columns.