Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / layers / crash-no-scrollable-area-scrollbars.html
blob25983eeb8db14b53c2a7d51298da27780181ea81
1 <!DOCTYPE html>
2 <style>
3 .c11:nth-child(2n) { opacity: 0.1; }
4 .c11:nth-last-child(odd) { overflow: scroll; }
5 </style>
6 <div>This test checks that Layer doesn't crash because it is missing a ScrollableArea.</div>
7 <div>This test has passed if it doesn't crash.</div>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 function boom() {
13 var preDiv = document.createElement('div');
14 document.documentElement.appendChild(preDiv);
15 var selectDiv = document.createElement('div');
16 selectDiv.setAttribute('multiple', 'multiple');
17 selectDiv.setAttribute('class', 'c11');
18 document.documentElement.appendChild(selectDiv);
19 var div = document.createElement('div');
20 document.documentElement.appendChild(div);
21 var div3 = document.createElement('div');
22 document.documentElement.appendChild(div3);
23 document.body.offsetTop;
24 var div2 = document.createElement('div');
25 div2.appendChild(div);
27 window.onload = boom;
28 </script>