From 427d0c3c8fe941612b71082bec40dd2df2c16a37 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Sun, 25 Sep 2016 23:56:35 +1000 Subject: [PATCH] Activate specs for issue 2140 This PR activates specs for sass/libsass#2140 --- .../issue_2140/expected_output.css | 47 +++++++++++++++++++ .../issue_2140/input.scss | 28 +++++++++++ .../issue_2140/expected_output.css | 17 ------- .../libsass-todo-issues/issue_2140/input.scss | 9 ---- 4 files changed, 75 insertions(+), 26 deletions(-) create mode 100644 spec/libsass-closed-issues/issue_2140/expected_output.css create mode 100644 spec/libsass-closed-issues/issue_2140/input.scss delete mode 100644 spec/libsass-todo-issues/issue_2140/expected_output.css delete mode 100644 spec/libsass-todo-issues/issue_2140/input.scss diff --git a/spec/libsass-closed-issues/issue_2140/expected_output.css b/spec/libsass-closed-issues/issue_2140/expected_output.css new file mode 100644 index 0000000000..f76a658b74 --- /dev/null +++ b/spec/libsass-closed-issues/issue_2140/expected_output.css @@ -0,0 +1,47 @@ +:root { + --red: #f00; } + +a { + content: var(--red); } + +a { + content: var(--red); } + +a { + content: var(--red); } + +b { + content: -red; } + +b { + content: -red; } + +b { + content: -red; } + +c { + content: +-red; } + +c { + content: +-red; } + +c { + content: +-red; } + +d { + content: -red; } + +d { + content: -red; } + +d { + content: -red; } + +e { + content: +red; } + +e { + content: +red; } + +e { + content: +red; } diff --git a/spec/libsass-closed-issues/issue_2140/input.scss b/spec/libsass-closed-issues/issue_2140/input.scss new file mode 100644 index 0000000000..ab966ee929 --- /dev/null +++ b/spec/libsass-closed-issues/issue_2140/input.scss @@ -0,0 +1,28 @@ +$red: red; +$foo: red; + +:root { + --red: #f00; + // --red: $red; + // --red: $foo; +} + +a { content: var(--red) } +a { content: var(--$red) } +a { content: var(--$foo) } + +b { content: (- red) } +b { content: (- $red) } +b { content: (- $foo) } + +c { content: (+- red) } +c { content: (+- $red) } +c { content: (+- $foo) } + +d { content: (-red) } +d { content: (-$red) } +d { content: (-$foo) } + +e { content: (+ red) } +e { content: (+ $red) } +e { content: (+ $foo) } \ No newline at end of file diff --git a/spec/libsass-todo-issues/issue_2140/expected_output.css b/spec/libsass-todo-issues/issue_2140/expected_output.css deleted file mode 100644 index 14a1019964..0000000000 --- a/spec/libsass-todo-issues/issue_2140/expected_output.css +++ /dev/null @@ -1,17 +0,0 @@ -:root { - --teal: #444; } - -a { - content: var(--teal); } - -b { - content: -red; } - -c { - content: +-blue; } - -d { - content: -green; } - -e { - content: +yellow; } diff --git a/spec/libsass-todo-issues/issue_2140/input.scss b/spec/libsass-todo-issues/issue_2140/input.scss deleted file mode 100644 index 1b9085098d..0000000000 --- a/spec/libsass-todo-issues/issue_2140/input.scss +++ /dev/null @@ -1,9 +0,0 @@ -:root { - --teal: #444; -} - -a { content: var(--teal) } -b { content: (- red) } -c { content: (+- blue) } -d { content: (-green) } -e { content: (+ yellow) }