Skip to content

Commit b585b23

Browse files
committed
test: CSS file remove the extra line break
And temporarily lock the postcss version to 8.4.5, otherwise the comment.css test will fail.
1 parent 61ee882 commit b585b23

20 files changed

+300
-338
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"node": ">=10.0.0"
2828
},
2929
"peerDependencies": {
30-
"postcss": "^8.3.7"
30+
"postcss": "8.4.5"
3131
},
3232
"devDependencies": {
33-
"postcss": "^8.3.7",
33+
"postcss": "8.4.5",
3434
"tape": "^5.3.1"
3535
}
3636
}

test/fixtures/aspect-ratio.css

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
@media screen and (aspect-ratio >= 1/1000) and (aspect-ratio <= 16/9) {
1+
@media screen and (aspect-ratio >= 1/1000) and (aspect-ratio <= 16/9) {}
22

3-
}
3+
@media screen and (1 / 1000 <= aspect-ratio <= 16 / 9) {}
44

5-
@media screen and (1 / 1000 <= aspect-ratio <= 16 / 9) {
5+
@media screen and (0/0 <= aspect-ratio <= 16/9) {}
66

7-
}
8-
9-
@media screen and (0/0 <= aspect-ratio <= 16/9) {
10-
}
11-
12-
@media screen and (aspect-ratio) and (1 / 1000 <= aspect-ratio <= 16 / 9) {
13-
14-
}
7+
@media screen and (aspect-ratio) and (1 / 1000 <= aspect-ratio <= 16 / 9) {}
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
@media screen and (min-aspect-ratio: 1/1000) and (max-aspect-ratio: 16/9) {
1+
@media screen and (min-aspect-ratio: 1/1000) and (max-aspect-ratio: 16/9) {}
22

3-
}
3+
@media screen and (min-aspect-ratio: 1 / 1000) and (max-aspect-ratio: 16 / 9) {}
44

5-
@media screen and (min-aspect-ratio: 1 / 1000) and (max-aspect-ratio: 16 / 9) {
5+
@media screen and (min-aspect-ratio: 0/0) and (max-aspect-ratio: 16/9) {}
66

7-
}
8-
9-
@media screen and (min-aspect-ratio: 0/0) and (max-aspect-ratio: 16/9) {
10-
}
11-
12-
@media screen and (aspect-ratio) and (min-aspect-ratio: 1 / 1000) and (max-aspect-ratio: 16 / 9) {
13-
14-
}
7+
@media screen and (aspect-ratio) and (min-aspect-ratio: 1 / 1000) and (max-aspect-ratio: 16 / 9) {}

test/fixtures/color-index.css

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
@media screen and (color-index >= 0) and (color-index <= 8) {
1+
@media screen and (color-index >= 0) and (color-index <= 8) {}
22

3-
}
3+
@media screen and (0 <= color-index <= 8) {}
44

5-
@media screen and (0 <= color-index <= 8) {
6-
7-
}
8-
9-
@media screen and (color-index) and (6 <= color-index <= 256) {
10-
11-
}
5+
@media screen and (color-index) and (6 <= color-index <= 256) {}
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
@media screen and (min-color-index: 0) and (max-color-index: 8) {
1+
@media screen and (min-color-index: 0) and (max-color-index: 8) {}
22

3-
}
3+
@media screen and (min-color-index: 0) and (max-color-index: 8) {}
44

5-
@media screen and (min-color-index: 0) and (max-color-index: 8) {
6-
7-
}
8-
9-
@media screen and (color-index) and (min-color-index: 6) and (max-color-index: 256) {
10-
11-
}
5+
@media screen and (color-index) and (min-color-index: 6) and (max-color-index: 256) {}

test/fixtures/color.css

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
@media screen and (color >= 0) and (color <= 8) {
1+
@media screen and (color >= 0) and (color <= 8) {}
22

3-
}
3+
@media screen and (0 <= color <= 8) {}
44

5-
@media screen and (0 <= color <= 8) {
6-
7-
}
8-
9-
@media screen and (color) and (6 <= color <= 256) {
10-
11-
}
5+
@media screen and (color) and (6 <= color <= 256) {}

test/fixtures/color.output.css

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
@media screen and (min-color: 0) and (max-color: 8) {
1+
@media screen and (min-color: 0) and (max-color: 8) {}
22

3-
}
3+
@media screen and (min-color: 0) and (max-color: 8) {}
44

5-
@media screen and (min-color: 0) and (max-color: 8) {
6-
7-
}
8-
9-
@media screen and (color) and (min-color: 6) and (max-color: 256) {
10-
11-
}
5+
@media screen and (color) and (min-color: 6) and (max-color: 256) {}
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
@media screen and (device-aspect-ratio >= 1/1000) and (device-aspect-ratio <= 16/9) {
1+
@media screen and (device-aspect-ratio >= 1/1000) and (device-aspect-ratio <= 16/9) {}
22

3-
}
3+
@media screen and (1 / 1000 <= device-aspect-ratio <= 16 / 9) {}
44

5-
@media screen and (1 / 1000 <= device-aspect-ratio <= 16 / 9) {
5+
@media screen and (0/0 <= device-aspect-ratio <= 16/9) {}
66

7-
}
8-
9-
@media screen and (0/0 <= device-aspect-ratio <= 16/9) {
10-
}
11-
12-
@media screen and (device-aspect-ratio) and (1 / 1000 <= device-aspect-ratio <= 16 / 9) {
13-
14-
}
7+
@media screen and (device-aspect-ratio) and (1 / 1000 <= device-aspect-ratio <= 16 / 9) {}
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
@media screen and (min-device-aspect-ratio: 1/1000) and (max-device-aspect-ratio: 16/9) {
1+
@media screen and (min-device-aspect-ratio: 1/1000) and (max-device-aspect-ratio: 16/9) {}
22

3-
}
3+
@media screen and (min-device-aspect-ratio: 1 / 1000) and (max-device-aspect-ratio: 16 / 9) {}
44

5-
@media screen and (min-device-aspect-ratio: 1 / 1000) and (max-device-aspect-ratio: 16 / 9) {
5+
@media screen and (min-device-aspect-ratio: 0/0) and (max-device-aspect-ratio: 16/9) {}
66

7-
}
8-
9-
@media screen and (min-device-aspect-ratio: 0/0) and (max-device-aspect-ratio: 16/9) {
10-
}
11-
12-
@media screen and (device-aspect-ratio) and (min-device-aspect-ratio: 1 / 1000) and (max-device-aspect-ratio: 16 / 9) {
13-
14-
}
7+
@media screen and (device-aspect-ratio) and (min-device-aspect-ratio: 1 / 1000) and (max-device-aspect-ratio: 16 / 9) {}
Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
1-
@media screen and (device-width >= 500px) and (device-width <= 1200px) {
1+
@media screen and (device-width >= 500px) and (device-width <= 1200px) {}
22

3-
}
3+
@media screen and (500px <= device-width <= 1200px) {}
44

5-
@media screen and (500px <= device-width <= 1200px) {
5+
@media screen and (0 <= device-width <= 500.58px) {}
66

7-
}
8-
9-
@media screen and (0 <= device-width <= 500.58px) {
10-
}
11-
12-
@media screen and (device-width) and (.08px <= device-width <= 0.68px) {
13-
14-
}
7+
@media screen and (device-width) and (.08px <= device-width <= 0.68px) {}
158

169
/* device-height */
17-
@media screen and (device-height >= 500px) and (device-height <= 1200px) {
18-
19-
}
20-
21-
@media screen and (500px <= device-height <= 1200px) {
22-
23-
}
10+
@media screen and (device-height >= 500px) and (device-height <= 1200px) {}
2411

25-
@media screen and (0 <= device-height <= 500.58px) {
26-
}
12+
@media screen and (500px <= device-height <= 1200px) {}
2713

28-
@media screen and (device-height) and (.08px <= device-height <= 0.68px) {
14+
@media screen and (0 <= device-height <= 500.58px) {}
2915

30-
}
16+
@media screen and (device-height) and (.08px <= device-height <= 0.68px) {}

0 commit comments

Comments
 (0)