From 365cd30d03513a291aea73e1d0c3494b5c69d3d9 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 4 Oct 2017 09:27:56 +0200 Subject: Remove constant() for CSS validator, e.g. constant(safe-area-inset-left) for iPhone X --- itjs.php | 1 + 1 file changed, 1 insertion(+) (limited to 'itjs.php') 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 -- cgit v1.2.3