Skip to content

Commit

Permalink
Activate specs for issue 1415
Browse files Browse the repository at this point in the history
This PR activates specs for sass/libsass#1415
  • Loading branch information
xzyfer committed Aug 10, 2015
1 parent 2a4ec6d commit 899c688
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 0 deletions.
Empty file.
Empty file.
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions spec/libsass-closed-issues/issue_1415/direct/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@if & {
foo {
foo: bar;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.foo bar { color: red; }

.foo bar baz { color: red; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.foo bar{color:red}.foo bar baz{color:red}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.foo bar {
color: red;
}

.foo bar baz {
color: red;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.foo bar {
color: red; }

.foo bar baz {
color: red; }
27 changes: 27 additions & 0 deletions spec/libsass-closed-issues/issue_1415/mixin/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@mixin prepend-foo {
$parent: &;

@if $parent {
.foo & {
@content;
}
} @else {
.foo {
@content;
}
}
}

@include prepend-foo {
bar {
color: red;
}
}

bar {
@include prepend-foo {
baz {
color: red;
}
}
}
Empty file.
Empty file.
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions spec/libsass-closed-issues/issue_1415/variable/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$parent: &;

@if $parent {
foo {
foo: bar;
}
}

0 comments on commit 899c688

Please sign in to comment.