|
1 <!DOCTYPE html> |
|
2 <html class="reftest-wait"> |
|
3 <head> |
|
4 <style type="text/css"> |
|
5 html, body { |
|
6 margin: 0; padding: 5px; |
|
7 } |
|
8 div { |
|
9 height: 20px; |
|
10 background-color: green; |
|
11 } |
|
12 #small { |
|
13 margin-top: 40px; |
|
14 margin-bottom: -40px; |
|
15 } |
|
16 #big { |
|
17 display: none; |
|
18 margin-top: -60px; |
|
19 background-color: blue; |
|
20 } |
|
21 </style> |
|
22 <script type="text/javascript"> |
|
23 function test() { |
|
24 document.getElementById('big').style.display = 'block'; |
|
25 document.documentElement.removeAttribute('class'); |
|
26 } |
|
27 document.addEventListener('MozReftestInvalidate', test, false); |
|
28 </script> |
|
29 </head> |
|
30 <body> |
|
31 <div id="small"></div> |
|
32 <div id="big"></div> |
|
33 </body> |
|
34 </html> |