Crash in WebCore::RenderTableSection::addChild due to assert failure
[WebKit-https.git] / LayoutTests / fast / table / table-anonymous-cell-bug.html
1 <!DOCTYPE html>
2 <html>
3 <body style="font-family: ahem; -webkit-font-smoothing: none;">
4 <style>
5     div.table { display: table; }
6     div.section { display: table-row-group; }
7     div.cell { display: table-cell; width: 50px; height: 50px; background-color: blue; }
8     div.row { display: table-row; }
9 </style>
10
11 <div class="table" id="table-1">
12   <div class="section" id="tbody-1">
13     <div class="row" id="row-1">
14       <div class="cell" id="cell-1"></div>
15       <div class="cell" id="cell-2"></div>
16     </div>
17   </div>
18 </div>
19
20 <script>
21     function createSpan()
22     {
23       var spanElement = document.createElement("span");
24       spanElement.appendChild(document.createTextNode("Some text."));
25       return spanElement;
26     }
27
28     function insertSpan(tableID, beforeID)
29     {
30         var tableRow = document.getElementById(tableID);
31         var before = document.getElementById(beforeID);
32         tableRow.insertBefore(createSpan(), before);
33     }
34
35     document.body.offsetTop;
36
37     insertSpan("row-1", "cell-2");
38 </script>
39 </body>
40 </html>