CSS Nesting (&) Playground

Native nesting without Sass. Write nested CSS, see what the browser read: each rule’s flat selector, its specificity, the elements it hits, and the fate of a…

Why it matters

Nesting now works in every modern browser without Sass. But & in real CSS is a selector, not a piece of text: &.laris differs from & .laris, &__nama is dropped, and a list as the parent raises specificity. Knowing this keeps your CSS short without surprises.

The key idea

& is the parent selector, not a piece of text

Common mistakes

Try it in this playground