Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / caption-position.html
blob992794bb5c5d5f2c01ac44bf5d8833871354536e
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>
14 <script>
15 onload = function() {
16 document.body.offsetTop;
17 document.getElementById('elm').style.left = '1px';
19 </script>