⚖️

CSS Selector Weight Calculator

Real-time calculation of a-b-c triple weight, visual comparison of the stacking order of multiple selectors, purely local processing

Current selector weight
0 ID (a)
-
0 class/property/pseudo-class (b)
-
0 element/pseudo-element (c)
ID selector (a+1)
Class / Attribute / Pseudo class (b+1)
element / pseudo element (c+1)
Wildcard / Combinator (not counted)
Selector comparison
Click "Add to Comparison" to add the selector to the comparison list