summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorUrban Müller2011-09-13 12:07:19 +0000
committerUrban Müller2011-09-13 12:07:19 +0000
commite004b6c4f1267f80f1d920fe937eba8a50fda303 (patch)
treeccaba605b21f792faadb28e052519488b5bfdf2b /itjs.php
parentf28848f9922745445cf3fe8d51b4f3351f2c2d5c (diff)
downloaditools-e004b6c4f1267f80f1d920fe937eba8a50fda303.tar.gz
itools-e004b6c4f1267f80f1d920fe937eba8a50fda303.tar.bz2
itools-e004b6c4f1267f80f1d920fe937eba8a50fda303.zip
demand trailing - in webkit styles
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/itjs.php b/itjs.php
index 1a6a630..e808ae2 100644
--- a/itjs.php
+++ b/itjs.php
@@ -50,8 +50,8 @@ else if (it::match('\.css', $_SERVER['PHP_SELF']))
$data .= "\n#it_boot_dom { display:none }\n"; # Append magic style for it_boot
if (!it::match('^devel', $GLOBALS['ULTRASERVERTYPE']))
$data = it::replace(array('[ \t]*([{};])[ \t]*' => '$1', '/\*.*?\*/' => ""), $data);
- if (it::match('W3C_CSS_Validator', $_SERVER['HTTP_USER_AGENT']))
- $data = it::replace(array('background[^;}]*(gradient|rgba)[^;}]*;?' => "", '(filter:\s*progid|text-overflow:|zoom:|-webkit|display:-moz-|-moz-|-o-|cursor:|border-radius:|behavior:|\w+:expression)[^;}]*;?' => "", 'html\.ie6.*' => "", '([^/])\*(\w)' => '$1$2'), $data);
+ if (it::match('W3C_CSS_Validator', $_SERVER['HTTP_USER_AGENT']) || EDC('w3c'))
+ $data = it::replace(array('background[^;}]*(gradient|rgba)[^;}]*;?' => "", '(filter:\s*progid|text-overflow:|zoom:|-webkit-|display:-moz-|-moz-|-o-|cursor:|border-radius:|behavior:|\w+:expression)[^;}]*;?' => "", 'html\.ie6.*' => "", '([^/])\*(\w)' => '$1$2'), $data);
}
else if (!it::match('\.html$', $file))
{