Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / fixed-table-layout / prepend-in-fixed-table.html
blob2f96ca2f380e4d2e4d34726bc474a8390008977f
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=88676">88676</a>: Crash in TableLayoutAlgorithmFixed::layout.</p>
5 <p id="console">FAILED, the test didn't run</p>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 var tableParts = [
11 "table-cell",
12 "table-row",
13 "table-row-group",
14 "table-column-group",
15 "table-caption"
18 var childTypes = [
19 "block",
20 "inline",
21 "table-cell",
22 "table-row",
23 "table-row-group",
24 "table-column-group",
25 "table-caption"
28 for (var i = 0; i < tableParts.length; ++i) {
29 for (var j = 0; j < childTypes.length; ++j) {
30 document.body.appendChild(document.createElement("pre")).appendChild(document.createTextNode("Prepending " + childTypes[j] + " to " + tableParts[i] + ":"));
31 var container = document.createElement("table");
32 container.style.tableLayout = "fixed";
33 container.width = "1";
34 var tablePart = document.createElement("div");
35 tablePart.style.display = tableParts[i];
36 container.appendChild(tablePart);
37 document.body.appendChild(container);
38 document.body.offsetTop;
39 var newChild = document.createElement("div");
40 newChild.style.display = childTypes[j];
41 container.insertBefore(newChild, tablePart);
42 document.body.offsetTop;
43 // The above should have the same render tree as you get when
44 // you do it all at once, like this:
45 document.body.appendChild(container.cloneNode(true));
46 document.body.offsetTop;
50 document.getElementById("console").innerHTML = "PASSED, the test didn't crash.";
51 </script>
52 </body>
53 </html>