summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2017-10-04 09:27:56 +0200
committerChristian Schneider2017-10-04 09:27:56 +0200
commit365cd30d03513a291aea73e1d0c3494b5c69d3d9 (patch)
treed5bd2f29296335feb4caac70b7ae67894d679a87
parent44559ea5f8341f4364d2f1d6fe16754768950307 (diff)
downloaditools-365cd30d03513a291aea73e1d0c3494b5c69d3d9.tar.gz
itools-365cd30d03513a291aea73e1d0c3494b5c69d3d9.tar.bz2
itools-365cd30d03513a291aea73e1d0c3494b5c69d3d9.zip
Remove constant() for CSS validator, e.g. constant(safe-area-inset-left) for iPhone X
-rw-r--r--itjs.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/itjs.php b/itjs.php
index 80cc6a7..0913d4e 100644
--- a/itjs.php
+++ b/itjs.php
@@ -57,6 +57,7 @@ else if (it::match('\.css', $lastfile))
'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
'\bbackground-position-[xy]' => "background-position",
),
$data