summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-shorthand-infinite-loop.html
blob: 68a21680d4b0a02c7ac87cbfc2b26c63021220ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<link href="resources/grid.css" rel="stylesheet">
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
</style>
<p>This test checks that setting grid-template shorthand from JavaScript doesn't cause an infinite loop.</p>
<div class="grid">
    <div id="item"></div>
</div>
<script>
    var item = document.getElementById("item");
    item.style.gridTemplate = '10px / "a"';
    item.style.gridTemplate = '"a b" "a b"';
</script>