3 <body style=
"font-family: Ahem; -webkit-font-smoothing: none;">
5 div.table { display: table; }
6 div.section { display: table-row-group; }
7 div.test { background-color: green; width:
50px; height:
50px; }
10 <div class=
"table" id=
"table-1">
11 <div class=
"section" id=
"tbody-1">
13 <div class=
"section" id=
"tbody-2">
20 var divElement
= document
.createElement("div");
21 divElement
.setAttribute("class", "test");
25 function insertDiv(tableID
, beforeID
)
27 var table
= document
.getElementById(tableID
);
28 var before
= document
.getElementById(beforeID
);
29 table
.insertBefore(createDiv(), before
);
32 document
.body
.offsetTop
;
34 insertDiv("table-1", "tbody-2");