Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <style type="text/css">
5 .separator {
6 height: 20px;
7 background-color: green;
8 }
9 #bfc {
10 margin-top: 10px;
11 margin-bottom: 20px;
12 }
13 </style>
14 <script type="text/javascript">
15 function test() {
16 document.getElementById('bfc').style.overflow = 'hidden';
17 document.documentElement.removeAttribute('class');
18 }
19 document.addEventListener('MozReftestInvalidate', test, false);
20 </script>
21 </head>
22 <body>
23 <div class="separator"></div>
24 <div id="bfc"></div>
25 <div class="separator"></div>
26 </body>
27 </html>