diff --git a/spec/libsass-todo-issues/issue_1291/expected.compact.css b/spec/libsass-todo-issues/issue_1291/expected.compact.css new file mode 100644 index 0000000000..7e8513b203 --- /dev/null +++ b/spec/libsass-todo-issues/issue_1291/expected.compact.css @@ -0,0 +1 @@ +.my-element { value: -3; value: 3; value: -5; value: 5; value: -7; value: 7; } diff --git a/spec/libsass-todo-issues/issue_1291/expected.compressed.css b/spec/libsass-todo-issues/issue_1291/expected.compressed.css new file mode 100644 index 0000000000..37c814550e --- /dev/null +++ b/spec/libsass-todo-issues/issue_1291/expected.compressed.css @@ -0,0 +1 @@ +.my-element{value:-3;value:3;value:-5;value:5;value:-7;value:7} diff --git a/spec/libsass-todo-issues/issue_1291/expected.expanded.css b/spec/libsass-todo-issues/issue_1291/expected.expanded.css new file mode 100644 index 0000000000..f4c63b29f3 --- /dev/null +++ b/spec/libsass-todo-issues/issue_1291/expected.expanded.css @@ -0,0 +1,8 @@ +.my-element { + value: -3; + value: 3; + value: -5; + value: 5; + value: -7; + value: 7; +} diff --git a/spec/libsass-todo-issues/issue_1291/expected_output.css b/spec/libsass-todo-issues/issue_1291/expected_output.css new file mode 100644 index 0000000000..cb53f4a571 --- /dev/null +++ b/spec/libsass-todo-issues/issue_1291/expected_output.css @@ -0,0 +1,7 @@ +.my-element { + value: -3; + value: 3; + value: -5; + value: 5; + value: -7; + value: 7; } diff --git a/spec/libsass-todo-issues/issue_1291/input.scss b/spec/libsass-todo-issues/issue_1291/input.scss new file mode 100644 index 0000000000..d94aa9ae77 --- /dev/null +++ b/spec/libsass-todo-issues/issue_1291/input.scss @@ -0,0 +1,22 @@ +@mixin spec1($decimal) { + $decimal: unquote($decimal) * -1; + value: $decimal; +} + +@mixin spec2($decimal) { + $decimal: -1 * unquote($decimal); + value: $decimal; +} + +@mixin spec3($decimal) { + value: #{$decimal * -1}; +} + +.my-element { + @include spec1(3); + @include spec1(-3); + @include spec2(5); + @include spec2(-5); + @include spec3(7); + @include spec3(-7); +} \ No newline at end of file