@@ -8,7 +8,7 @@ const plugin = require('../src');
8
8
*/
9
9
10
10
/**
11
- * Take string literals are remove newlines and extra spacing so results print
11
+ * Take string literals and remove newlines and extra spacing so results print
12
12
* as expected in logs
13
13
* @return {string } string without newlines and tabs
14
14
*/
@@ -23,7 +23,7 @@ const removeDuplicates = testFactory(
23
23
) ;
24
24
25
25
test (
26
- 'remove duplicated properties when combine selectors' ,
26
+ 'remove duplicated properties when combining selectors' ,
27
27
removeDuplicates ,
28
28
'.a {height: 10px; color: black;} .a {color: blue; width: 20px;}' ,
29
29
'.a {height: 10px;color: blue; width: 20px;}' ,
@@ -54,7 +54,7 @@ const keepDuplicates = testFactory(
54
54
) ;
55
55
56
56
test (
57
- 'maintain duplicated properties when combine selectors' ,
57
+ 'maintain duplicated properties when combining selectors' ,
58
58
keepDuplicates ,
59
59
'.a {height: 10px; color: black;} .a {color: blue; width: 20px;}' ,
60
60
'.a {height: 10px; color: black;color: blue; width: 20px;}' ,
@@ -86,7 +86,7 @@ const removeExactDuplicates = testFactory(
86
86
) ;
87
87
88
88
test (
89
- 'remove duplicated properties with matching values when combine selectors' ,
89
+ 'remove duplicated properties with matching values with combined selectors' ,
90
90
removeExactDuplicates ,
91
91
'.a {height: 10px; color: red;} .a {color: red; color: blue; width: 20px;}' ,
92
92
'.a {height: 10px;color: red; color: blue; width: 20px;}' ,
@@ -111,3 +111,23 @@ test(
111
111
}
112
112
` ,
113
113
) ;
114
+
115
+ test (
116
+ 'remove duplicate property with matching value, allow fallback' ,
117
+ removeExactDuplicates ,
118
+ minify `
119
+ .a {
120
+ height: 10px;
121
+ }
122
+ .a {
123
+ height: 10px;
124
+ height: var(--linkHeight);
125
+ }
126
+ ` ,
127
+ minify `
128
+ .a {
129
+ height: 10px;
130
+ height: var(--linkHeight);
131
+ }
132
+ ` ,
133
+ ) ;
0 commit comments