summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2017-10-05 08:29:14 +0200
committerChristian Schneider2017-10-05 08:29:14 +0200
commit7d20923534c664bba4e51497d348f3af5c9554d7 (patch)
treee1f671db4956cea195f740cdf5b1e918e892477e
parent365cd30d03513a291aea73e1d0c3494b5c69d3d9 (diff)
downloaditools-7d20923534c664bba4e51497d348f3af5c9554d7.tar.gz
itools-7d20923534c664bba4e51497d348f3af5c9554d7.tar.bz2
itools-7d20923534c664bba4e51497d348f3af5c9554d7.zip
Fix handling of constant() within calc() by changing order of replace
-rw-r--r--itjs.php2
1 files changed, 1 insertions, 1 deletions
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