summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/crash-empty-section-calcBorder.html
blob: 7555a72035f7beb7002e030c378d1eb16155585b (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
<!DOCTYPE html>
<html>
<head>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    function crash() {
        var firstBody = document.getElementById("firstBody");
        firstBody.removeChild(firstBody.firstChild);
        firstBody.offsetTop;
    }

    window.addEventListener("load", crash, false);
</script>
</head>
<body>
<p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=71246">71246</a>: REGRESSION(98738): Multiple crashes in the table rendering code</p>
<p>This test PASSES if it does not CRASH.</p>
<table style="border-collapse: collapse">
    <tbody id="firstBody" style="border: 2px solid green"><tr style="border: 4px solid red"></tr></tbody>
</table>
</body>
</html>