Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / table / dynamic-caption-add-remove-before-child.xhtml
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'));
10
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>