<!DOCTYPE html>
<title>CSS Grid Layout Test: Insert script as grid item</title>
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-item">
<link rel="stylesheet" href="/css/support/grid.css"/>
<link rel="match" href="../reference/grid-item-script-001-ref.html">
<meta name="assert" content="This test ensures that inserting a script element as grid item doesn't crash.">
<div class="grid">
<script>
  var grid = document.getElementsByClassName("grid")[0];
  grid.offsetTop;
  grid.innerHTML = "Test passes if it doesn't crash.";
</script>
</div>