summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/deprecated-flexbox/overhanging-floats-not-removed-crash.html
blob: f11ff815f1a9671d2d2a45c048c65d5426cdb60f (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
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<body>
<style>
#test1 {
    display: -webkit-flexbox;
}
#test1::before {
    content: "A";
}
#test2::before {
    content: "B";
    float: right;
}
</style>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function runTest() {
    document.body.offsetTop;

    test1 = document.createElement('div');
    test1.setAttribute('id', 'test1');
    document.body.appendChild(test1);

    test2 = document.createElement('span'); 
    test2.setAttribute('id', 'test2');
    test1.appendChild(test2);

    test3 = document.createElement('div');
    test1.appendChild(test3);
    test3Child = document.createElement('div');
    test3.appendChild(test3Child);

    document.body.offsetTop;
    test2.style.display = '-webkit-flexbox';
    
    document.body.offsetTop;
    document.body.innerHTML = "PASS";
}

window.onload = runTest;
</script>
</body>
</html>