blob: 62e30748f4a8ad03de0067579e6e43d65931f4ab [file] [log] [blame]
<!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>