From 38f9d58c739687e269f46c6dff4647de9e2eb855 Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Wed, 23 Dec 2020 14:37:53 +0100 Subject: [PATCH] Add test for #349 --- tests/css/CSSTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/css/CSSTest.php b/tests/css/CSSTest.php index fe1ed46..001b60a 100644 --- a/tests/css/CSSTest.php +++ b/tests/css/CSSTest.php @@ -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; }