Skip to content

Commit a51a13c

Browse files
authored
Merge pull request #1470 from mgreter/todo/issue_2884
Add todo spec test for libsass issue 2884
2 parents dbb65c4 + 2791aaa commit a51a13c

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<===> input.scss
2+
$titles: "foo", "bar", "BaZ";
3+
4+
%border {
5+
border: 1px solid;
6+
}
7+
8+
@mixin border-red {
9+
border-color: red;
10+
}
11+
12+
@mixin border-blue {
13+
border-color: blue;
14+
}
15+
16+
@each $t in $titles {
17+
p[title="#{$t}" i] {
18+
@extend %border;
19+
@include border-red;
20+
}
21+
p[title="#{$t}"] {
22+
@extend %border;
23+
@include border-blue;
24+
}
25+
}
26+
27+
<===> output.css
28+
p[title=BaZ], p[title=BaZ i], p[title=bar], p[title=bar i], p[title=foo], p[title=foo i] {
29+
border: 1px solid;
30+
}
31+
32+
p[title=foo i] {
33+
border-color: red;
34+
}
35+
36+
p[title=foo] {
37+
border-color: blue;
38+
}
39+
40+
p[title=bar i] {
41+
border-color: red;
42+
}
43+
44+
p[title=bar] {
45+
border-color: blue;
46+
}
47+
48+
p[title=BaZ i] {
49+
border-color: red;
50+
}
51+
52+
p[title=BaZ] {
53+
border-color: blue;
54+
}
55+
56+
<===> output-libsass.css
57+
p[title="foo" i], p[title="foo"], p[title="bar" i], p[title="bar"], p[title="BaZ" i], p[title="BaZ"] {
58+
border: 1px solid;
59+
}
60+
61+
p[title="foo" i] {
62+
border-color: red;
63+
}
64+
65+
p[title="foo"] {
66+
border-color: blue;
67+
}
68+
69+
p[title="bar" i] {
70+
border-color: red;
71+
}
72+
73+
p[title="bar"] {
74+
border-color: blue;
75+
}
76+
77+
p[title="BaZ" i] {
78+
border-color: red;
79+
}
80+
81+
p[title="BaZ"] {
82+
border-color: blue;
83+
}

0 commit comments

Comments
 (0)