OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 Test passes if above is on top. | |
3 <table cellspacing="0" cellpadding="0"> | |
4 <caption> | |
5 <div style="position:relative; height:2em;"> | |
6 <div id="elm" style="position:absolute; left:0;">above</div> | |
7 </div> | |
8 </caption> | |
9 <tr> | |
10 <td>below</td> | |
11 </tr> | |
12 </table> | |
13 | |
14 <script> | |
15 onload = function() { | |
16 document.body.offsetTop; | |
17 document.getElementById('elm').style.left = '1px'; | |
18 } | |
19 </script> | |
OLD | NEW |