-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty declarations sometimes being output #1106
Comments
Still seeing this in 3.0.0-beta.6. I'll work on a reduced test case today. |
$foo: red;
$bar: unquote(null);
.baz {
foo: $foo;
foo: $bar; }
.bax {
foo: $bar; }
.bay {
foo: $foo; } Ruby Sass .baz {
foo: red; }
.bay {
foo: red; } Libsass 3.1.0 .baz {
foo: red; }
.bax { }
.bay {
foo: red; } Libsass 3.2.0-beta.6 .baz {
foo: red;
foo: ;}
.bay {
foo: red; } |
This appears to be due a difference in foo {
bar: type-of(unquote(''));
baz: type-of(unquote(null)) } Ruby Sass foo {
bar: string;
baz: null; } Libsass foo {
bar: string;
baz: string; } |
Although the current patch solves the issue of not showing empty rulesets, due to #1124 in the special case of $foo: null;
foo {
a: $foo;
b: $foo; }
bar {
a: b;
b: unquote($foo); } Ruby Sass bar {
a: b; } Libsass 3.1 bar {
a: b; } Libsass 3.2.0-beta.6 bar {
a: b;
b: ;} I have update the spec to reflect this new information - sass/sass-spec#336 |
Ruby Sass 3.4.12
Ruby Sass 3.4.12
Libsass 3.1.0
.foo { }
Libsass 3.2.0-beta.5
Spec added sass/sass-spec#329
The text was updated successfully, but these errors were encountered: