<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/un-sass-ing-my-css-native-css-nesting-t1my1vdhs" -->

---
title: Un-Sass'ing My CSS: Native CSS Nesting | daily.dev
description: Native CSS nesting is now supported across all modern browsers, offering a built-in alternative to Sass nesting. The post covers how the & selector works, key...
canonical: https://daily.dev/posts/un-sass-ing-my-css-native-css-nesting-t1my1vdhs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Un-Sass'ing My CSS: Native CSS Nesting | daily.dev
og:description: Native CSS nesting is now supported across all modern browsers, offering a built-in alternative to Sass nesting. The post covers how the & selector works, key...
og:url: https://daily.dev/posts/un-sass-ing-my-css-native-css-nesting-t1my1vdhs
og:image: https://api.daily.dev/og/posts/t1my1vDhs.png
og:image:alt: Un-Sass'ing My CSS: Native CSS Nesting
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Un-Sass'ing My CSS: Native CSS Nesting

**[Always Twisted](https://daily.dev/sources/alwaystwisted)** · 10 min read · 5 upvotes · 0 comments

## Summary

Native CSS nesting is now supported across all modern browsers, offering a built-in alternative to Sass nesting. The post covers how the & selector works, key differences from Sass (no string concatenation for BEM, no mixins/variables), specificity rules (& behaves like :is() using highest specificity from parent list), and practical examples including component variants, container queries, reduced-motion preferences, theming with data attributes, and :has() patterns. Guidelines on when to nest vs. avoid nesting are also provided, with a general recommendation to stay within 2-3 levels deep.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.alwaystwisted.com/articles/UnSassing-my-CSS-nesting.html>

## Similar posts on daily.dev

- [Native CSS Nesting](https://daily.dev/posts/native-css-nesting-r3p5s5hro) · Flavio Copes · 15 upvotes · 2 comments
- [A history of styling choices leading to native CSS](https://daily.dev/posts/a-history-of-styling-choices-leading-to-native-css-vl9qwhhjt) · Cassidy's blog · 25 upvotes · 3 comments
- [CSS @scope: An Alternative To Naming Conventions And Heavy Abstractions — Smashing Magazine](https://daily.dev/posts/css-scope-an-alternative-to-naming-conventions-and-heavy-abstractions-smashing-magazine-bznxvwrpv) · Smashing Magazine · 2 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css)

[View this post on daily.dev](https://daily.dev/posts/un-sass-ing-my-css-native-css-nesting-t1my1vdhs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Un-Sass'ing My CSS: Native CSS Nesting","url":"https://daily.dev/posts/un-sass-ing-my-css-native-css-nesting-t1my1vdhs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/un-sass-ing-my-css-native-css-nesting-t1my1vdhs"},"datePublished":"2026-03-09T11:07:40.454Z","dateModified":"2026-03-09T11:08:03.384Z","description":"Native CSS nesting is now supported across all modern browsers, offering a built-in alternative to Sass nesting. The post covers how the \u0026 selector works, key...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b9b4226420a215800a28c3fc9faa8464?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b9b4226420a215800a28c3fc9faa8464?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Always Twisted","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Always Twisted","logo":"https://media.daily.dev/image/upload/s--YjoaNten--/f_auto,q_auto/v1765712927/logos/alwaystwisted","url":"https://daily.dev/sources/alwaystwisted"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/un-sass-ing-my-css-native-css-nesting-t1my1vdhs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Always Twisted","item":"https://daily.dev/sources/alwaystwisted"},{"@type":"ListItem","position":3,"name":"Un-Sass'ing My CSS: Native CSS Nesting"}]}
```

