Keith's avatar
Keith J. Grant

“Sass will simply not support plain CSS nesting unless we can do so in a way that’s fully compatible with existing Sass behavior.”

I think this is the end of the Sass road for me. In fact, as soon as I read this, I immediately regretting using Sass in my recent website redesign at all.

I mean, I get it. This is kind of the path Sass needs to take to maintain code compatability for existing projects, but I’ve been down this road before. Once upon a time, I wrote the CSS for nyse.com, and I did it all using PostCSS plugins to mimic “future” CSS.

The problem was, those future specs changed before they shipped in browsers, and I was stuck with a ton of legacy code that only worked because of my tooling. There was no easy path toward turning off the transipiling other than a painful rewrite of a lot of code. And that meant I couldn’t actually use the new feature, purely because I was too eager to fake it before it was ready.

I’m going to want to use CSS nesting as early as possible, and I don’t want to be stuck waiting on tooling to make that a reality.

Link copied!
  1. avatar image

    @keithjgrant I totally agree! I was murmuring much the same thought after I'd originally read Sass' post on the matter. While I certainly understand the desire to consider backwards compatibility and support for Sass users, having to essentially say “nope dawg" to a major new “vanilla CSS“ feature is super frustrating, and it makes it so I can't in good conscience recommend Sass for greenfield projects.

  2. avatar image

    @keithjgrant: I was thinking about it already. Why would I maintain a plus layer of abstraction to generate issues when features slowly moves in to the CSS core itself? Thank you much for highlighting this.

  3. avatar image

    @keithjgrant This was the cardinal sin of Pattern Lab too. Extending template syntax and thus creating lock-in.

  4. avatar image

    @keithjgrant I think it's time for a Sass fork that will do support plain CSS nesting.

    Would like them to add a flag to support it in Sass itself. But I'm willing to switch to a different pre processor.