Skip to content

Commit d8a9676

Browse files
test: css nesting (#190)
1 parent 01f11be commit d8a9676

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:import("path/library.css") {
2+
i__imported_importName_0: importName;
3+
}
4+
5+
:local(.foo) {
6+
display: grid;
7+
8+
@media (orientation: landscape) {
9+
&:local(.bar) {
10+
grid-auto-flow: column;
11+
12+
@media (min-width: 1024px) {
13+
&:local(.baz) {
14+
composes: i__imported_importName_0;
15+
}
16+
}
17+
}
18+
}
19+
}

test/test-cases/nesting/source.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:local(.foo) {
2+
display: grid;
3+
4+
@media (orientation: landscape) {
5+
&:local(.bar) {
6+
grid-auto-flow: column;
7+
8+
@media (min-width: 1024px) {
9+
&:local(.baz) {
10+
composes: importName from "path/library.css";
11+
}
12+
}
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)