Skip to content

Commit f9bb3d6

Browse files
RyanZimromainmenke
andauthored
Add test for encounteredNonImportNodes logic (#614)
Co-authored-by: Romain Menke <11521496+romainmenke@users.noreply.github.com>
1 parent 1bfb5c6 commit f9bb3d6

4 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
html {
2+
box-sizing: border-box;
3+
}
4+
@layer overrides;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@import "layer-after-content.css";
2+
.foo {
3+
color: red;
4+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
html {
2+
box-sizing: border-box;
3+
}
4+
@layer overrides;
5+
.foo {
6+
color: red;
7+
}

‎test/layer.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ test(
5858
"layer-statement-with-conditions",
5959
)
6060

61+
test(
62+
"should preserve the order of layer statements that follow other CSS",
63+
checkFixture,
64+
"layer-after-content",
65+
)
66+
6167
test(
6268
"should preserve the order of layer statements that follow layer blocks",
6369
checkFixture,

0 commit comments

Comments
 (0)