MDL-45231 theme_clean: navbar is absolute when running behat in IE
authorSam Hemelryk <sam@moodle.com>
Tue, 6 May 2014 21:42:02 +0000 (09:42 +1200)
committerSam Hemelryk <sam@moodle.com>
Tue, 6 May 2014 21:42:07 +0000 (09:42 +1200)
lib/behat/lib.php

index a16ad3b..de3a5ae 100644 (file)
@@ -170,13 +170,13 @@ function behat_clean_init_config() {
         }
     }
 
-    // Here we are forcing the navbar to be absolutely positioned in Chrome + Safari in order to
+    // Here we are forcing the navbar to be absolutely positioned in Chrome, Safari and IE in order to
     // avoid a driver bug whereby when the browser scrolls something into view it doesn't account
     // for fixed positioned elements that end up obscuring the item thus leading to errors that
     // could be avoided by scrolling an additional amount.
-    // This should be removed as soon as the drivers have been fixed.
+    // This should be removed as soon as the affected drivers have been fixed.
     $CFG->forced_plugin_settings['theme_clean'] = array(
-        'customcss' => 'body.safari .navbar-fixed-top {position: absolute;}'
+        'customcss' => 'body.safari .navbar-fixed-top, body.ie .navbar-fixed-top {position: absolute;}'
     );
 }