a73d35366c3080df0c27f845da7eaeb546dc64a5
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / table / before-child-non-table-section-add-table-crash.html
1 <html>
2     <body onload="runTest();">
3         <div id="table" style="display: table;">
4             <em id="em"></em>
5             <audio controls="arbitrary" style="display: table-caption;" />
6             <img id="img" />
7         </div>
8         <div id="result"></div>
9         <script type="text/javascript">
10             if (window.testRunner)
11                 testRunner.dumpAsText();
12
13             function runTest()
14             {
15                 var img = document.getElementById('img');
16                 var em = document.getElementById('em');
17                 em.parentNode.replaceChild(img, em);
18                 document.body.offsetTop;
19                 document.body.removeChild(document.getElementById('table'));
20                 
21                 document.getElementById("result").innerHTML = "PASS";
22             }
23         </script>
24     </body>
25 </html>