<!DOCTYPE html>
<style>
.c11:nth-child(2n) { opacity: 0.1; }
.c11:nth-last-child(odd) { overflow: scroll; }
</style>
<div>This test checks that Layer doesn't crash because it is missing a ScrollableArea.</div>
<div>This test has passed if it doesn't crash.</div>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function boom() {
    var preDiv = document.createElement('div');
    document.documentElement.appendChild(preDiv);
    var selectDiv = document.createElement('div');
    selectDiv.setAttribute('multiple', 'multiple');
    selectDiv.setAttribute('class', 'c11');
    document.documentElement.appendChild(selectDiv);
    var div = document.createElement('div');
    document.documentElement.appendChild(div);
    var div3 = document.createElement('div');
    document.documentElement.appendChild(div3);
    document.body.offsetTop;
    var div2 = document.createElement('div');
    div2.appendChild(div);
}
window.onload = boom;
</script>
