How to use it
- 1
Paste one selector or a comma-separated list.
- 2
Review the resulting score for each selector.
- 3
Compare ID, class/attribute/pseudo-class, and type buckets.
What the tool can do
- Counts ID selectors, classes, attributes, and pseudo-classes.
- Counts type selectors and pseudo-elements.
- Bounded handling of :where() as zero and :is/:not/:has by strongest argument.
Common use cases
- Debugging a conflict between a utility class and a component selector.
- Checking a selector before simplifying CSS.
- Documenting specificity rules in a design system.
How it works inside
The score is emitted as IDs-classes-types, for example 1-2-0.
:where() is zeroed according to modern specificity rules.
Questions and answers
Why is !important not in the score?
!important belongs to cascade resolution, not to the selector specificity number.
Can it analyze a whole CSS file?
No. The tool calculates explicitly pasted selectors without stylesheet parsing.
