Skip to content

Commit 7f7aadd

Browse files
Add test to confirm fix for 298
Fixes #298
1 parent 8538190 commit 7f7aadd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/css/CSSTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,17 @@ public function dataProvider()
821821
'.testclass{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}',
822822
);
823823

824+
// https://github.com/matthiasmullie/minify/issues/298
825+
$tests[] = array(
826+
':root {
827+
--some-var: 0px;
828+
}
829+
.some-class {
830+
margin-left: calc(20px + var(--some-var));
831+
}',
832+
':root{--some-var:0px}.some-class{margin-left:calc(20px + var(--some-var))}',
833+
);
834+
824835
return $tests;
825836
}
826837

0 commit comments

Comments
 (0)