• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4348 shaares
Filters

Un-Sass'ing My CSS: Native CSS Nesting | Always Twisted

QRCode

Learn how to use native CSS nesting in modern browsers. Understand the & selector, specificity rules, differences from Sass, and when to use nesting with practical examples for components, themes, and accessibility.

Here's where things get a little interesting. CSS nesting follows the same specificity rules as traditional CSS, with one important detail: the & nesting selector calculates its specificity like the :is() pseudo-class it uses the highest specificity from the parent selector list, not the sum of all the selectors.

https://www.alwaystwisted.com/articles/UnSassing-my-CSS-nesting
March 23, 2026 at 2:57:13 PM EDT *
css nesting sass
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community