summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/text-autosizing/subtree-layout-crash.html
blob: c8631a180463c7db7df60c46af3ec9691f39d7e6 (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
34
35
36
<!DOCTYPE html>
<html>
<head>
<style>

#subtree {
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: list-item;
}

</style>
<script src="resources/autosizingTest.js"></script>
</head>
<body>
Test for crbug.com/360171: this test passes if it does not crash.<br/>
<div id="subtree"></div>

<script>
if (window.testRunner)
    testRunner.waitUntilDone();

window.requestAnimationFrame(function () {
    document.querySelector('#subtree').innerHTML =
        "This text appears inside a relayout boundary.";

    if (window.testRunner) {
        testRunner.dumpAsText();
        testRunner.notifyDone();
    }
});

</script>
</body>
</html>