Cascade Debugger - Free Online CSS Specificity Tool | IconVault

Paste CSS and a target selector to see which declaration wins each property. Hand-written specificity calculator shows the math. Free.

All tools

Cascade Debugger

See which CSS declaration wins each property

5 of 5 free uses left

Matching is approximate: a rule counts if its last compound selector is covered by the target selector.

5 rules parsed · 4 properties for button#submit.btn.primary

background: #10b981 !important

Wins by !important

winning selector: .btn.primary (0, 2, 0)

.btn (0, 1, 0) - loses

border: none

Only matching declaration

winning selector: #submit.btn (1, 1, 0)

color: #000

Wins on specificity (1, 1, 0) over (0, 1, 0)

winning selector: #submit.btn (1, 1, 0)

.btn (0, 1, 0) - loses

button (0, 0, 1) - loses

padding: 12px 24px

Wins on specificity (0, 2, 1) over (0, 0, 1)

winning selector: button.btn.primary (0, 2, 1)

button (0, 0, 1) - loses

5 of 5 free report copies left.

About this tool

IconVault's Cascade Debugger answers the eternal question: why is this style not applying? Paste your CSS rules, type the target selector you are debugging, and the tool lists every matching selector with its specificity score in (ID, class, element) form. For each CSS property it shows all competing declarations and highlights the winner, with the reason: higher specificity or later in source order.

!important declarations are ranked above normal ones, exactly like the browser does. The specificity engine is hand-written and handles IDs, classes, attributes, pseudo-classes, pseudo-elements and :not() correctly. The honest caveat: matching is a static approximation of the selector's last compound, not a live DOM inspector, so treat it as a logic check. Free and runs fully in your browser.

Frequently asked questions

Popular searches

css cascade debuggercss specificity calculatorspecificity calculatorcss specificity checkercss winner declarationwhich css winscss conflict resolverdebug css specificitycss cascade visualizercss specificity explainedcss specificity scorecalculate specificity csscss id class element scorespecificity 0 1 0css important vs specificityimportant declaration winscss source order winscss cascade ordercss inheritance debuggerwhy css not applyingcss style overriddencss rule conflictcss selector prioritycss priority calculatorcss weight calculatorcss not working debugcss troubleshooting toolcss logic checkerpseudo class specificitypseudo element specificityattribute selector specificitynot selector specificitycss specificity pointscss specificity hierarchycss cascade layerscss specificity warslearn css specificitycss specificity tutorialcss specificity examplescss specificity practiceonline css debuggerfree css debuggercss debug tool onlinepaste css debugcss rule analyzercss declaration winnercss property conflictcss matching selectorscss selector testercss specificity tool free

More tools

Coming soon

CLI

Coming soon

Figma plugin

Coming soon

VS Code extension

Coming soon

Chrome extension

Coming soon

AI icon generator

Coming soon

Team workspaces

Coming soon

View all 10+ tools →