4 <link href="resources/grid.css" rel="stylesheet">
8 grid-template-rows: repeat(2, 100px);
9 grid-template-columns: 100px;
10 width: -webkit-fit-content;
11 background-color: red;
17 background-color: orange;
21 function onloadScrollTop() {
22 // Scroll until we see the grid item's border but not the grid item
23 window.scrollBy(0,-150);
27 <body style="height: 1000px" onload="onloadScrollTop()">
30 <div class="gridItem" style="grid-column: 1; grid-row: 1; border-bottom: 100px green solid;"></div>
33 <div>There should be a 100px wide green box (grid item's border) above</div>
37 window.scrollTo(0,300);