summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-bad-cast-addchild.html
blob: dc002e827acc286d70ca3c0404efad86709a6bd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<link href="resources/grid.css" rel="stylesheet">
<p>This test checks that inserting a non-LayoutBox grid item doesn't make us crash.</p>
<p>This test has PASSED if it didn't crash and you see PASSED below.</p>
<div class="grid">
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    var grid = document.getElementsByClassName("grid")[0];
    grid.offsetTop;
    grid.innerHTML = "PASSED";
</script>