summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/layers/crash-remove-scrollbar-no-scrollable-area.html
blob: 054764c58c3f4cf4c67e8a4dba757f62ee5fc225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<style>
.c2 { overflow: scroll; background: aqua; }
.c6 { -webkit-column-count: 2;}
</style>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function boom() {
    var select = document.createElement('select');
    select.setAttribute('size', '65536');
    select.setAttribute('class', 'c2');
    document.documentElement.appendChild(select);
    document.body.offsetTop;
    select.setAttribute('class', 'c6');
    document.body.offsetTop;
}
window.onload = boom;
</script>
<div>This test checks that RenderLayer doesn't crash because it is missing a ScrollableArea.</div>
<div>This test has PASSED if it didn't CRASH.</div>