node-sass icon indicating copy to clipboard operation
node-sass copied to clipboard

adding --outputStyle compressed leads to semantically different css

Open maxwellium opened this issue 12 years ago • 3 comments

in a mixin

@mixin flex($grow: 1, $shrink: null, $basis: null) {
  -webkit-box-flex: $grow;
  -webkit-flex: $grow $shrink $basis;
  -moz-box-flex: $grow;
  -moz-flex: $grow $shrink $basis;
  -ms-flex: $grow $shrink $basis;
  flex: $grow $shrink $basis;
}

the null params get parsed as they should producing this:

[flex] {
-webkit-flex: 1;
-moz-flex: 1;
-ms-flex: 1;
flex: 1;
}

when adding the outputStyle compressed flags however, the following output is returned

[flex] {
-webkit-flex: 1nullnull;
-moz-flex: 1nullnull;
-ms-flex: 1nullnull;
flex: 1nullnull;
}

maxwellium avatar Sep 25 '14 12:09 maxwellium

This would need to be fixed in libsass.

am11 avatar Sep 25 '14 17:09 am11

right. raised there https://github.com/sass/libsass/issues/487

maxwellium avatar Sep 25 '14 18:09 maxwellium

:+1:

am11 avatar Sep 25 '14 18:09 am11