Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / dynamic-caption-add-before-child.xhtml
blobfcecfe15012a42a7f5f012622bd7740215e97c6d
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 <caption id="c2" style="opacity: 0.5">PASS: Text in caption 2</caption>
6 <caption id="c3" style="opacity: 0.2">PASS: Text in caption 3</caption>
7 <caption id="c4" style="opacity: 0">PASS: Text in caption 4</caption>
8 </table>
9 <script>
10 var caption = document.createElement('caption');
11 caption.appendChild(document.createTextNode('PASS: Dynamically added caption'));
13 var table = document.getElementById('table');
14 var c1 = document.getElementById('c1');
15 table.insertBefore(caption, c1);
16 document.body.offsetTop;
17 </script>
18 </body>
19 </html>