sass/sassc-rails

difference in output between sass-rails and sassc-rails

beauraF opened this issue · 1 comments

Hello,

We tried to migrate from sass-rails to sassc-rails recently and we encountered some differences in output.

We have this code:

body:not(.configuration-template, .vpns-monitoring) {	
  div,	
  span,	
  p {	
    user-select: none;	
  }	
}

sass-rails output:

body:not(.configuration-template, .vpns-monitoring) div,
body:not(.configuration-template, .vpns-monitoring) span,
body:not(.configuration-template, .vpns-monitoring) p {
          user-select: none;
}

sassc-rails output:

body div,
body span,
body p {
          user-select: none;
}

The main problem comes from us because we use a CSS4 syntax.
But I find the behaviour of sass-rails safer. It generates CSS that will just not be interpreted by the browser. When sassc-rails generates CSS with a completely different behavior ; which actually broke us, several features.

What do u think about it ?

This library is simply a wrapper around the underlying libsass library. It would be best if you could take a look for any similar issues there- https://github.com/sass/libsass - and open a new issue there if necessary.