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