[Cocoa] Web Inspector: Unify Grid overlay drawing code
[WebKit-https.git] / LayoutTests / fast / table / table-anonymous-section-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.test { background-color: green; width: 50px; height: 50px; }
8 </style>
9
10 <div class="table" id="table-1">
11     <div class="section" id="tbody-1">
12     </div>
13     <div class="section" id="tbody-2">
14     </div>
15 </div>
16
17 <script>
18     function createDiv()
19     {
20       var divElement = document.createElement("div");
21       divElement.setAttribute("class", "test");
22       return divElement;
23     }
24
25     function insertDiv(tableID, beforeID)
26     {
27         var table = document.getElementById(tableID);
28         var before = document.getElementById(beforeID);
29         table.insertBefore(createDiv(), before);
30     }
31
32     document.body.offsetTop;
33
34     insertDiv("table-1", "tbody-2");
35 </script>
36 </body>
37 </html>