|
1 <!DOCTYPE html> |
|
2 <html class="reftest-wait"> |
|
3 <head> |
|
4 |
|
5 <style> |
|
6 .fl:first-line { } |
|
7 .inh { position: inherit; } |
|
8 .abs { position: absolute; } |
|
9 </style> |
|
10 |
|
11 <script> |
|
12 |
|
13 var x, y; |
|
14 |
|
15 function boom() |
|
16 { |
|
17 x = document.getElementById("x"); |
|
18 y = document.getElementById("y"); |
|
19 |
|
20 x.setAttribute('class', "fl abs"); |
|
21 y.setAttribute('class', "inh"); |
|
22 setTimeout(boom2, 5); |
|
23 } |
|
24 |
|
25 function boom2() |
|
26 { |
|
27 y.setAttribute('class', "abs"); |
|
28 |
|
29 document.documentElement.removeAttribute("class"); |
|
30 } |
|
31 |
|
32 </script> |
|
33 |
|
34 </head> |
|
35 |
|
36 <body onload="setTimeout(boom, 5);"> |
|
37 <div id="x"> |
|
38 <p id="y">foo</p> |
|
39 </div> |
|
40 </body> |
|
41 |
|
42 </html> |