Sass 3.5 is Released

Posted 7 July 2017 by Natalie Weizenbaum

I’m excited to announce that I’ve just released the stable version of Sass 3.5. This release focuses on compatibility with new CSS syntax, and helps lay the groundwork for the upcoming module system and compatibility with Dart Sass.

Most of the major features in 3.5 were already in the release candidate, which you can read about here. But there are a handful of other changes that have been added since then:

Dart Sass Compatibility permalinkDart Sass Compatibility

I wrote last month about our plans for keeping Ruby Sass compatible with Dart Sass in the short term. Sass 3.5 begins to implement those plans by adding support for a number of small behavioral extensions added by Dart Sass:

There are also some deprecations for functionality that’s not supported in Ruby Sass:

When you write h1 {@extend .a.b}, this should mean that all h1 elements are styled as though they match .a.b—that is, as though they have class="a b", which means they’d match both .a and .b separately. But instead we extend only selectors that contain both .a and .b, which is incorrect.

LibSass Compatibility permalinkLibSass Compatibility

LibSass, the C++ implementation of Sass, is well on its way to compatibility with all these features. It’s not quite there yet, but we decided we didn’t want to block the 3.5 release on 100% compatibility. LibSass will release these features as it implements them.

What’s Next? permalinkWhat’s Next?

In the most immediate future, I’m going on leave for a few months, so there’s not likely to be a huge amount of work. Once that’s over, I’ll be focusing on getting Dart Sass to a full 1.0.0 release, which means spending a bunch of time making its JavaScript API compatible with node-sass.

As far as Ruby Sass goes, I’ll continue to fix bugs and add support for the CSS features as browsers start to support them. Once Dart Sass 1.0.0 is out, I’ll add new features concurrently across both Ruby and Dart until the one-year support period is up.

But for now, run gem update sass and enjoy 3.5!