blob: 323e9ba3c4fb7a2f02a6f859c0915f456327ce87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!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>
|