summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/itjs.php b/itjs.php
index 6c8113d..83ea79a 100644
--- a/itjs.php
+++ b/itjs.php
@@ -59,6 +59,12 @@ else if (it::match('\.css', $file))
'([^/])\*(\w)' => '$1$2'),
$data
);
+ if ((($ie = it::match('MSIE (\d+)', $_SERVER['HTTP_USER_AGENT'])) && intval($ie) < 9) || EDC('iecompat'))
+ $data = it::replace(array(
+ '([;{]\s*)(background-size:[^;}])' => '\1behavior:url(/itjs/ie-backgroundsize-min.htc);\2',
+ '([;{]\s*)(border-radius:[^;}]*)' => '\1behavior:url(/itjs/ie-PIE.htc);\2'),
+ $data
+ );
}
else if (it::match('\.htc$', $file))
{