<!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> |