Skip to content

Commit bff0c50

Browse files
committed
tests cases for mixed support TRBL values
1 parent fc48e04 commit bff0c50

File tree

8 files changed

+58
-0
lines changed

8 files changed

+58
-0
lines changed

test/fixture/compress/trbl/5.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
p {
2+
margin-top: 1rem;
3+
}
4+
5+
* {
6+
margin: 0;
7+
padding: 0;
8+
}
9+
10+
p {
11+
margin: 0;
12+
}

test/fixture/compress/trbl/5.min.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*,p{margin:0}*{padding:0}

test/fixture/compress/trbl/6.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
a {
2+
margin-top: 1px;
3+
margin-top: 1rem;
4+
margin-bottom: 1px;
5+
margin-left: 1px;
6+
margin-right: 1px;
7+
}
8+
9+
/*! better solution:
10+
a{margin:1px;margin-top:1rem}
11+
*/

test/fixture/compress/trbl/6.min.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
a{margin-top:1px;margin-top:1rem;margin-bottom:1px;margin-left:1px;margin-right:1px}
2+
/*! better solution:
3+
a{margin:1px;margin-top:1rem}
4+
*/

test/fixture/compress/units/4.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* a non-special unit value should always beat a specials */
2+
a {
3+
margin-top: 1rem;
4+
margin-top: 1px;
5+
}
6+
7+
b {
8+
margin-top: 2px;
9+
margin-top: 2rem;
10+
margin-top: 3px;
11+
}

test/fixture/compress/units/4.min.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a{margin-top:1px}b{margin-top:3px}

test/fixture/compress/units/5.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* a non-special unit value with important */
2+
3+
a {
4+
margin-top: 1px !important;
5+
margin-top: 1rem;
6+
}
7+
8+
b {
9+
margin-top: 2px !important;
10+
margin-top: 2rem !important;
11+
}
12+
13+
c {
14+
margin-top: 3px;
15+
margin-top: 3rem !important;
16+
}

test/fixture/compress/units/5.min.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
a{margin-top:1px!important}b{margin-top:2px!important;margin-top:2rem!important}c{margin-top:3px;margin-top:3rem!important}
2+

0 commit comments

Comments
 (0)