Skip to content
All Sizzy Tools
Selectors Level 4 · Supports :where(), :is(), :not(), :has()

CSS Specificity Calculator

Compare CSS selectors side by side to see exact (ID, Class, Element) specificity weights and immediately spot which rule wins the cascade.

Specificity Cheat Sheet:
  • (1, 0, 0) — ID selectors (#app)
  • (0, 1, 0) — Classes, attributes, pseudo-classes (.card, :hover)
  • (0, 0, 1) — Type & pseudo-elements (h2, ::after)
  • (0, 0, 0) — Universal * and :where(...)
Highest Specificity Winner
#app .card:hover > h2.title
1
ID
3
CLASS
1
EL
nav ul li a[href^="https"]::after
0
ID
1
CLASS
5
EL
:is(.btn, #cta-primary).active
1
ID
1
CLASS
0
EL
body main section p:first-child
0
ID
1
CLASS
4
EL
:where(#header .nav) a
0
ID
0
CLASS
1
EL

Debug CSS cascades across mobile and desktop simultaneously

Sizzy opens synced multi-device viewports with per-device DevTools and an 85-tool built-in MCP server for Claude Code and Cursor.

Explore Sizzy Features