Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / prepend-in-anonymous-table.html
blob28b97ca045ecb922ddc13cdf5cef4d2aebfc8c61
1 <body>
2 <p>
3 Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=19519">https://bugs.webkit.org/show_bug.cgi?id=19519</a> DOM modification causes stack exhaustion (BUTTON OBJECT COLGROUP)</i>.
4 </p>
5 <script>
6 var tableParts = [
7 "table-cell",
8 "table-row",
9 "table-row-group",
10 "table-column-group",
11 "table-caption"
14 var childTypes = [
15 "block",
16 "inline",
17 "table-cell",
18 "table-row",
19 "table-row-group",
20 "table-column-group",
21 "table-caption"
24 for (var i = 0; i < tableParts.length; ++i) {
25 for (var j = 0; j < childTypes.length; ++j) {
26 document.body.appendChild(document.createElement("pre")).appendChild(document.createTextNode("Prepending " + childTypes[j] + " to " + tableParts[i] + ":"));
27 var container = document.createElement("div");
28 var tablePart = document.createElement("div");
29 tablePart.style.display = tableParts[i];
30 container.appendChild(tablePart);
31 document.body.appendChild(container);
32 document.body.offsetTop;
33 var newChild = document.createElement("div");
34 newChild.style.display = childTypes[j];
35 container.insertBefore(newChild, tablePart);
36 document.body.offsetTop;
37 // The above should have the same render tree as you get when
38 // you do it all at once, like this:
39 document.body.appendChild(container.cloneNode(true));
40 document.body.offsetTop;
43 </script>
44 </body>