CSS @layer Cascade Visualizer
Cascade layers change which rule wins — but the precedence is invisible. Paste CSS with
@layer declarations to see the precedence stack, detect cross-layer
conflicts, and know exactly which layer wins.
Tool interface
Cascade stack (highest → lowest precedence)
Cross-layer conflicts
Live preview
Introduction
@layer lets you control cascade priority independent of specificity and
source order. But when two layers style the same property, it's hard to remember which
wins. This tool makes the precedence explicit.
How it works
- Parses
@layerorder statements and blocks, plus unlayered rules. - Builds the precedence stack: unlayered first, then layers in reverse declaration order.
- Flags selectors whose properties are set in more than one layer, naming the winner.
- Optionally renders your HTML with the CSS to show computed winning values.
Privacy
All parsing and rendering is local. No upload, no account, no API key.
Limitations
- Single-level
@layerparsing; nested layers are flattened. - Does not evaluate
!importantinversion across layers.
FAQ
Which layer wins a conflict?
For normal declarations, the later-declared layer wins; unlayered styles beat every layer.
Is my CSS uploaded?
No. Everything runs locally.