Skip to content

Commit 6fbbb74

Browse files
Add test for #378
1 parent 759f087 commit 6fbbb74

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
@@ -832,6 +832,17 @@ public function dataProvider()
832832
':root{--some-var:0px}.some-class{margin-left:calc(20px + var(--some-var))}',
833833
);
834834

835+
// https://github.com/matthiasmullie/minify/issues/378
836+
$tests[] = array(
837+
':root {
838+
--some-var: 0px;
839+
}
840+
p {
841+
margin-left: calc(20px + var(--some-var));
842+
}',
843+
':root{--some-var:0px}p{margin-left:calc(20px + var(--some-var))}'
844+
);
845+
835846
return $tests;
836847
}
837848

0 commit comments

Comments
 (0)