Skip to content

Commit 81ff67a

Browse files
refactor: modules option tests (#808) (#809)
1 parent b0db66f commit 81ff67a

File tree

54 files changed

+1735
-620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1735
-620
lines changed

test/__snapshots__/modules-option.test.js.snap

Lines changed: 1581 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:local(.c1/*.c2*/.c3) { background: red; }

test/moduleTestCases/comments/source.css renamed to test/fixtures/modules/tests-cases/comments/source.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
*/
44

55
.bg {
6-
background-image: url(bg.jpg);
6+
background-image: url(./img.png);
77
}
88

99
/*
1010
* a ' below
11-
*/
11+
*/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:local(.c2) {
2+
color: red;
3+
}
4+
5+
:local(.c4) {
6+
color: blue;
7+
}
8+
9+
.test{
10+
c: d
11+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:local(.c1) { composes: c2 from "./file.css"; b: 1; }
2+
:local(.c3) { composes: c1; b: 3; }
3+
:local(.c5) { composes: c2 c4 from "./file.css"; b: 5; }
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:local(.c-2) {
2+
color: red;
3+
}
4+
5+
:local(.c4) {
6+
color: blue;
7+
}
8+
9+
.test{
10+
c: d
11+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:local(.c1) { composes: c-2 from "./file.css"; b: 1; }
2+
:local(.c3) { composes: c1; b: 3; }
3+
:local(.c5) { composes: c-2 c4 from "./file.css"; b: 5; }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:local(.def1) {
2+
color: red;
3+
}

0 commit comments

Comments
 (0)