Skip to content

Commit 913f461

Browse files
committed
added an explicit test of media-query syntax
1 parent 359b54a commit 913f461

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

test/test-cases/export-class/expected.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
:export {
22
exportName: _input__exportName;
3+
newExport: _input__newExport;
34
}
45

56
._input__exportName {
@@ -9,3 +10,14 @@
910
._input__exportName:hover {
1011
color: red;
1112
}
13+
14+
@media (max-width: 520px) {
15+
/* selector doubled to increase specificity */
16+
._input__exportName._input__exportName {
17+
color: darkgreen;
18+
}
19+
20+
._input__newExport {
21+
color: blue;
22+
}
23+
}

test/test-cases/export-class/source.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,14 @@
55
:local(.exportName):hover {
66
color: red;
77
}
8+
9+
@media (max-width: 520px) {
10+
/* selector doubled to increase specificity */
11+
:local(.exportName):local(.exportName) {
12+
color: darkgreen;
13+
}
14+
15+
:local(.newExport) {
16+
color: blue;
17+
}
18+
}

0 commit comments

Comments
 (0)