From 7d20923534c664bba4e51497d348f3af5c9554d7 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 5 Oct 2017 08:29:14 +0200 Subject: Fix handling of constant() within calc() by changing order of replace --- itjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs.php') diff --git a/itjs.php b/itjs.php index 0913d4e..5f2a12d 100644 --- a/itjs.php +++ b/itjs.php @@ -56,8 +56,8 @@ else if (it::match('\.css', $lastfile)) '([^/])\*(\w)' => '$1$2', 'svg\..*' => "", # ignore svg styles '\battr\(.*?\)' => "'x'", # ignore content:attr(placeholder) - '\bcalc\(.*?\)' => "0", # ignore calc() '\bconstant\(.*?\)' => "0", # ignore constant(), e.g. constant(safe-area-inset-left) for iPhone X + '\bcalc\(.*?\)' => "0", # ignore calc() '\bbackground-position-[xy]' => "background-position", ), $data -- cgit v1.2.3