| <link href="resources/grid.css" rel="stylesheet"> |
| grid-auto-rows: minmax(min-content, 9px); |
| grid-auto-columns: min-content; |
| <script src="../../resources/js-test.js"></script> |
| <script type="text/javascript"> |
| document.addEventListener("DOMContentLoaded", crash, false); |
| var grid = document.getElementById("grid"); |
| shouldBeEqualToString("window.getComputedStyle(grid, '').getPropertyValue('grid-template-rows')", "10px"); |
| var child = document.createElement("div"); |
| child.className = "firstRowFirstColumn"; |
| child.innerHTML = "XXXX XXXX"; |
| shouldBeEqualToString("window.getComputedStyle(grid, '').getPropertyValue('grid-template-rows')", "20px"); |
| <p>The test has passed if it does not CRASH in Debug builds.</p> |
| <div class="grid" id="grid"> |
| <div class="firstRowFirstColumn">XXXX</div> |