Skip to content

Commit

Permalink
Add test for #349
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmullie committed Dec 23, 2020
1 parent 022cd72 commit 38f9d58
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/css/CSSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,16 @@ public function dataProvider()
'*{margin-left:calc(0.5rem * calc(1 - var(--space-x-reverse)))}',
);

// https://github.com/matthiasmullie/minify/issues/349
$tests[] = array(
'.space-x-4 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0;
margin-right: calc(1rem * var(--tw-space-x-reverse));
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}',
'.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}',
);

return $tests;
}

Expand Down

0 comments on commit 38f9d58

Please sign in to comment.