Skip to content

Commit 07870d4

Browse files
committed
Merge pull request #712 from mgreter/todo-test/issue_1796
Add todo spec test for libsass issue 1796
2 parents c3edc27 + 0ef6dec commit 07870d4

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

spec/libsass-todo-issues/issue_1796/expected.compact.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/libsass-todo-issues/issue_1796/expected.compressed.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.parent .brother, .parent .sister, .parent .cousin {
2+
color: green;
3+
sel: .parent .brother, .parent .sister, .parent .cousin;
4+
x: .parent .brother + .brother;
5+
x: .parent .brother + .brother, .parent .sister + .sister;
6+
x: .parent .brother + .brother, .parent .sister + .sister, .parent .cousin + .cousin;
7+
}
8+
.parent .brother + .brother, .parent .sister + .sister, .parent .cousin + .cousin {
9+
debug: foo;
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.parent .brother, .parent .sister, .parent .cousin {
2+
color: green;
3+
sel: .parent .brother, .parent .sister, .parent .cousin;
4+
x: .parent .brother + .brother;
5+
x: .parent .brother + .brother, .parent .sister + .sister;
6+
x: .parent .brother + .brother, .parent .sister + .sister, .parent .cousin + .cousin; }
7+
.parent .brother + .brother, .parent .sister + .sister, .parent .cousin + .cousin {
8+
debug: foo; }
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.parent {
2+
.brother, .sister, .cousin {
3+
color: green;
4+
sel: &;
5+
6+
$new-sel: ();
7+
@each $s in & {
8+
$last: nth($s, -1);
9+
$new-sel: append($new-sel, $s #{'+'} $last, comma);
10+
x: $new-sel;
11+
}
12+
@at-root #{$new-sel} {
13+
debug: foo;
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)