You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Libsass 3.3 when you have invalidly escaped selectors they can get silently swallowed and never output without throwing a compilation exception. Consider the following scss:
Note that the output for tests 1.2, 2.1 and 3.1 are all absent. Running this against Ruby Sass 3.4.14 (using sassmeister.com) gives compile errors that those tests have invalid CSS. Commenting out those test cases allows the scss to compile.
This is particularly an issue as libsass 3.2 (again, tested using sassmeister.com) treats cases 1.1, 2.1 and 3.2 as valid scss, but refuses to compile 1.2, 2.2 and 3.1 which means that when upgrading from libsass 3.2 to 3.3 there are no compile-time errors but parts of your CSS file go missing.
I would expect that the three cases 1.2, 2.1 and 3.1 would raise an exception when compiling in libsass 3.3 so that bad selectors issues are obviously highlighted rather than being glossed over.
The text was updated successfully, but these errors were encountered:
In Libsass 3.3 when you have invalidly escaped selectors they can get silently swallowed and never output without throwing a compilation exception. Consider the following scss:
In libsass 3.3.1 (I'm using node-sass 3.4.1 as a wrapper) the above compiles to:
Note that the output for tests 1.2, 2.1 and 3.1 are all absent. Running this against Ruby Sass 3.4.14 (using sassmeister.com) gives compile errors that those tests have invalid CSS. Commenting out those test cases allows the scss to compile.
This is particularly an issue as libsass 3.2 (again, tested using sassmeister.com) treats cases 1.1, 2.1 and 3.2 as valid scss, but refuses to compile 1.2, 2.2 and 3.1 which means that when upgrading from libsass 3.2 to 3.3 there are no compile-time errors but parts of your CSS file go missing.
I would expect that the three cases 1.2, 2.1 and 3.1 would raise an exception when compiling in libsass 3.3 so that bad selectors issues are obviously highlighted rather than being glossed over.
The text was updated successfully, but these errors were encountered: