Skip to content

Commit

Permalink
add unit test for mutiple calc() on same line
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona authored and matthiasmullie committed Jan 21, 2020
1 parent a5cf827 commit a5c9d09
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 @@ -494,6 +494,17 @@ public function dataProvider()
'p{width:calc(35% + (10% + 0px + 10%))}',
);

// https://github.com/matthiasmullie/minify/issues/274
$tests[] = array(
'.cvp-live-filter select {
background-position:
calc(100% - 20px) calc(1em + 2px),
calc(100% - 15px) calc(1em + 2px),
calc(100% - 2.5em) 0.5em;
}',
'.cvp-live-filter select{background-position:calc(100% - 20px) calc(1em + 2px),calc(100% - 15px) calc(1em + 2px),calc(100% - 2.5em) .5em}',
);

// https://github.com/matthiasmullie/minify/issues/139
$tests[] = array(
__DIR__.'/sample/line_endings/lf/parent.css',
Expand Down

0 comments on commit a5c9d09

Please sign in to comment.