summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/layers/crash-shadowdom-scrollbar-no-scrollable-area.html
blob: 13cb426ce373d3546d8113f5ab529cc42cfe7a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<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>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function boom() {
    var ruby = document.createElement('ruby');
    var ins = document.createElement('ins');
    var map = document.createElement('map');
    var tfoot = document.createElement('tfoot');
    var blockquote = document.createElement('blockquote');
    var style = document.createElement('style');
    style.innerHTML = '.c19 { -webkit-backface-visibility: hidden; } .c19:nth-child(even) { overflow: scroll; -webkit-transform: scale(0.5, 0.5); }';
    var em = document.createElement('em');
    var header = document.createElement('header');
    header.setAttribute('class', 'c19');
    document.documentElement.appendChild(ruby);
    document.documentElement.appendChild(ins);
    document.documentElement.appendChild(map);
    document.documentElement.appendChild(tfoot);
    document.documentElement.appendChild(blockquote);
    document.documentElement.appendChild(style);
    document.documentElement.appendChild(em);
    document.documentElement.appendChild(header);

    document.body.offsetTop;
    var shadow = document.createElement('div').webkitCreateShadowRoot();
    shadow.appendChild(tfoot);
}
window.onload = boom;
</script>