CSS Nesting Simplifies Your Stylesheets Now
from The Web Development Podcast with Fexingo: Frontend, Backend, and Modern Web Stack Hosted by Fexingo
In episode 105 of The Web Development Podcast, Lucas and Luna dive into CSS Nesting — the native feature that landed in browsers in 2023 and is finally ready for production. They walk through a concrete before-and-after example: refactoring a media-card component from 40 lines of repetitive Sass-style nesting to 22 lines of native CSS that works everywhere. Along the way they explain the gotchas — why you can't nest selectors that start with a letter without an ampersand, how nesting interacts with the cascade, and why this isn't just syntactic sugar but a genuine readability and maintainability win. They also compare CSS Nesting to preprocessor nesting from Sass and Less and discuss when you might still want a preprocessor. A practical episode for any developer writing CSS today. #CSSNesting #WebDevelopment #Frontend #CSS #Sass #CodingTips #WebPerformance #DeveloperTools #StyleSheets #CSSSelectors #BrowserFeatures #Refactoring #Maintainability #Technology #FexingoBusiness #BusinessPodcast #LucasAndLuna #WebDevPodcast Keep every episode free: buymeacoffee.com/fexingo
Embed this episode
No transcript yet.