sass / ruby-sass

The original, now deprecated Ruby implementation of Sass
https://sass-lang.com
MIT License
183 stars 38 forks source link

Bug with handling / in interpolation #48

Open nex3 opened 6 years ago

nex3 commented 6 years ago

From https://github.com/sass/sass/issues/2160:

@nex3 confirmed this is a bug. There is currently a sass spec asserting this broken behaviour which is causing LibSass to fail CI.

h1 {
  delayd: #{5% / 2};
  delayd: #{+5% / 2};
  evaled: #{-5% / 2};
}

Sass 3.4.21

h1 {
  delayd: 5%/2;
  delayd: 5%/2;
  evaled: -2.5%;
}

Expected

h1 {
  delayd: 5%/2;
  delayd: 5%/2;
  evaled: -5%/2;
}