Skip to content

Commit

Permalink
Add test for #378
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmullie committed Mar 24, 2022
1 parent 759f087 commit 6fbbb74
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/css/CSSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,17 @@ public function dataProvider()
':root{--some-var:0px}.some-class{margin-left:calc(20px + var(--some-var))}',
);

// https://github.com/matthiasmullie/minify/issues/378
$tests[] = array(
':root {
--some-var: 0px;
}
p {
margin-left: calc(20px + var(--some-var));
}',
':root{--some-var:0px}p{margin-left:calc(20px + var(--some-var))}'
);

return $tests;
}

Expand Down

0 comments on commit 6fbbb74

Please sign in to comment.