diff --git a/lib/weblib.php b/lib/weblib.php
index a5abc26..e5f5748 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -1530,6 +1530,7 @@ function purify_html($text, $options = array()) {
         $config->set('HTML.Doctype', 'XHTML 1.0 Transitional');
         $config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'irc'=>true, 'nntp'=>true, 'news'=>true, 'rtsp'=>true, 'teamspeak'=>true, 'gopher'=>true, 'mms'=>true, 'mailto'=>true));
         $config->set('Attr.AllowedFrameTargets', array('_blank'));
+        $config->set('CSS.AllowTricky', true);
 
         if (!empty($CFG->allowobjectembed)) {
             $config->set('HTML.SafeObject', true);
