Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dynamic / recursive-layout.html
blob1cbf2d4eff4cbd71417349e67d3bad152ef460aa
1 <html>
2 <head id="head">
3 <script>
4 function test()
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 var target = document.getElementById("target");
10 getSelection().setBaseAndExtent(target, 0, target, 0);
11 document.body.offsetTop;
13 var head = document.getElementById("head");
14 var link = document.createElement("link");
15 link.setAttribute("href", "data:text/css,");
16 link.setAttribute("rel", "stylesheet");
17 // This will increase the pending stylesheet count
18 head.appendChild(link);
19 // This will require layout
20 foo.style.width = "100px";
22 </script>
23 </head>
24 <body onload="test()">
25 <p>
26 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=14118">http://bugs.webkit.org/show_bug.cgi?id=14118</a>
27 ASSERTION FAILED: !needsLayout() seen again</i>.
28 </p>
29 <p>
30 No assertion failure here means SUCCESS.
31 </p>
32 <div id="target">This is something to select</div>
33 <div id="foo"></div>
34 </body>
35 </html>