Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/grid-definition/grid-add-positioned-block-item-after-inline-item-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>CSS Grid Layout Test: no crash with positioned block grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<meta name="assert" content="Test that adding a positioned block grid item after an inline grid item does not crash." />
<style>
#grid {
display: grid;
grid-auto-flow: dense;
}
embed {
position: absolute;
}
</style>
</head>
<body>
<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>