Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / float / intruding-float-not-removed-from-descendant-crash.html
blob99b1b8d7364a2c4b6b796eedd5317435a7ad6eef
1 <html>
2 Test passes if it does not crash.
3 <style>
4 .div2 { float: none; width: 100px; }
5 .div2:nth-last-child(odd) { float: right; }
6 .span1 { float: right; height: 100px; }
7 .td1 { height: 100px; }
8 </style>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 function runTest() {
14 span1 = document.createElement('span');
15 span1.setAttribute('class', 'span1');
16 document.documentElement.appendChild(span1);
18 div2 = document.createElement('div');
19 div2.setAttribute('class', 'div2');
20 document.documentElement.appendChild(div2);
22 document.documentElement.appendChild(document.createElement('div'));
24 div3 = document.createElement('div');
25 document.documentElement.appendChild(div3);
27 document.documentElement.appendChild(document.createElement('span'));
28 document.documentElement.appendChild(document.createElement('span'));
29 document.documentElement.appendChild(document.createElement('span'));
31 span2 = document.createElement('span');
32 document.documentElement.appendChild(span2);
34 document.documentElement.appendChild(document.createElement('div'));
36 document.body.offsetTop;
37 div1 = document.createElement('div');
38 td1 = document.createElement('td');
39 td1.appendChild(document.createTextNode('PASS'));
40 td1.setAttribute('class', 'td1');
41 div1.appendChild(td1);
42 div2.appendChild(div1);
44 document.body.offsetTop;
45 document.body.appendChild(div3);
47 document.body.offsetTop;
48 span2.appendChild(span1);
49 document.createElement("span").appendChild(span2);
52 window.onload = runTest;
53 </script>
54 </html>