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 #a {
6 height: 20px;
7 background-color: green;
8 }
9 #b {
10 height: 20px;
11 background-color: blue;
12 margin-top: 0;
13 }
14 </style>
15 <script type="text/javascript">
16 function test() {
17 document.getElementById('b').style.marginTop = '-20px';
18 document.documentElement.removeAttribute('class');
19 }
20 document.addEventListener('MozReftestInvalidate', test, false);
21 </script>
22 </head>
23 <body>
24 <div id="a"></div>
25 <div id="b"></div>
26 </body>
27 </html>