See the shape of your CSS
Stylesheet Audit: follow specificity from the first selector to the last.
100 KB max; first 5,000 selectors. Share links: up to 8 KB. Byte limits use UTF-8. Individual selectors: 1,000 characters; intermediate nesting rules: 2,000 characters; nested selector output: 50,000 characters and 1,024 substitutions per audit; expanded layer paths: 100 KB. CSS is parsed locally, never applied. Imports and resources are never fetched. No analytics or input storage. Only Copy link puts CSS in a URL; links are not encrypted.
The stylesheet in numbers
- Selectors
- 7
- Rules / declaration runs
- 7
- !important declarations
- 1
- Selectors with ID weight
- 1
- Maximum specificity
- 1, 1, 0
- Median specificity
- 0, 1, 0
Maximum: #app .card on line 12.
First non-zero column: ID 1; class 4; type 2; zero 0. The median is the lower middle triple when the count is even.
Specificity in source order
Selectors
| Line | Selector | Specificity | Layer / conditions | !important |
|---|---|---|---|---|
| 3 | :where(#app) a | 0, 0, 1 | base | No |
| 6 | .card | 0, 1, 0 | components | No |
| 8 | .card .title | 0, 2, 0 | components | No |
| 10 | :is(.notice, .alert) | 0, 1, 0 | components | No |
| 12 | #app .card | 1, 1, 0 | Unlayered | Yes |
| 13 | .card .title | 0, 2, 0 | Unlayered | No |
| 14 | a | 0, 0, 1 | Unlayered | No |
Findings and fixes
Review signals, not a grade. A graph cannot prove that two declarations compete for the same element and property.
ID weight: 1
Line 12: This selector carries ID specificity.
Only if the ID weight is unnecessary, use
:where(#id)or[id="x"]; keep the HTML ID if links or scripts need it. Verify matching and the cascade before replacing anything.:where(#app .card) { /* lower the selector's weight */ }
!important declarations: 1
Line 12: 1 declaration(s) use !important.
For normal author declarations, move competing rules into ordered layers rather than escalating specificity. Remove !important only after checking the cascade.
@layer base, components; @layer components { .component { color: inherit; } }
Deep selectors: 0
Duplicate selectors: 0
Specificity spikes: 2
Line 12: Higher specificity than all 2 following entries in the ten-entry window.
This is a review signal, not proof of a conflict: selectors, properties, conditions, layers and importance may differ. Consider lowering unnecessary weight.
:where(#app .card) { /* verify the cascade */ }Line 13: Higher specificity than all 1 following entries in the ten-entry window.
This is a review signal, not proof of a conflict: selectors, properties, conditions, layers and importance may differ. Consider lowering unnecessary weight.
:where(.card .title) { /* verify the cascade */ }
No findings for: deep selectors, duplicate selectors.
Layers
Layer order beats specificity within the same origin and importance: later layers win for normal declarations, and unlayered normal declarations win over layered ones. Important declarations reverse that order. Read the layer rules.
- base: 1 entries
- components: 3 entries
Unlayered: 3 entries.
Nested paths are grouped under their parent in first-declared sibling order. A parent layer’s own declarations outrank its sublayers for normal declarations. Conditions are recorded, not evaluated. Imports and descriptor rules are not audited.
Explainer
A map, not a verdict
A specificity graph shows selector weight in source order. Peaks identify places to review, not guaranteed bugs. A higher-weight rule can resist later rules only when they compete in the same cascade context. Origin, importance and layers are considered before specificity. Read how specificity fits the cascade .
Read the full triple
Specificity compares ID, class and type columns from left to right. The graph caps each column at nine solely for display; sorting and findings use the full triple. A spike here means higher specificity than every available entry in the next ten positions, with at least one following entry. No stylesheet-wide score or grade is assigned.
Lower weight deliberately
:where() and its arguments add no specificity. :is(), :not()
and :has() use their most specific argument. Nesting uses the maximum weight of the
parent selector list, not necessarily the parent that matches. See Selectors Level 4 and
nesting and specificity
. Removing weight changes the cascade; check the rendered page before applying a suggestion.
Give layers a job
Declare a layer order before adding rules. Later layers outrank earlier ones for normal declarations within the same origin; unlayered normal declarations take priority over layered ones. The order reverses for important declarations. Within a parent layer, its own normal declarations outrank its sublayers. See the layer rules .
What a pasted stylesheet cannot tell us
This audit does not evaluate media conditions, match selectors against a document, expand imports, or compare property values. Keyframes, font descriptors and unsupported at-rule groups are not selector rules and are reported as excluded. Rules with declarations after nested rules appear as separate declaration runs to preserve source order. Empty rules remain visible. The report is a starting point for review, not a replacement for browser inspection.