Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / dynamic-caption-add-remove-before-child.xhtml
blobb47d25f9cd754468da450eba8d6f7852f672e595
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <body>
3 <table id="table">
4 <caption id="c1">PASS: Text in caption 1</caption>
5 </table>
6 <script>
7 document.body.offsetLeft;
8 var caption = document.createElement('caption');
9 caption.appendChild(document.createTextNode('FAIL: Dynamically added caption'));
11 var table = document.getElementById('table');
12 var c1 = document.getElementById('c1');
13 table.insertBefore(caption, c1);
14 document.body.offsetTop;
15 table.removeChild(caption);
16 </script>
17 </body>
18 </html>