summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-add-positioned-block-item-after-inline-item.html
blob: 62e30748f4a8ad03de0067579e6e43d65931f4ab (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
<!DOCTYPE html>
<html>
<head>
<style>
    #grid {
        display: grid;
        grid-auto-flow: stack;
    }
    embed {
        position: absolute;
    }
</style>
<script type="text/javascript">
    if (window.testRunner)
        testRunner.dumpAsText();
</script>
</head>
<body>
    <p>This test checks that adding a positioned block grid item after an inline grid item (which inserts it inside the
    existing anonymous block wrapping the inline item) does not crash on debug.</p>
    <div id="grid">
        test
    </div>
    <script>
        var grid = document.getElementById("grid");
        grid.offsetTop;
        var embed = document.createElement("embed");
        embed.setAttribute("type", "image/png");
        grid.appendChild(embed);
    </script>
</body>
</html>