[css-grid] Import additional grid layout tests and update TestExpectations
[WebKit-https.git] / LayoutTests / fast / css-grid-layout / grid-item-border-overflow-paint.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet">
5 <link href="resources/grid.css" rel="stylesheet">
6 <style>
7     .grid {
8         display: grid;
9         grid-template-rows: repeat(2, 100px);
10         grid-template-columns: 100px;
11         background-color: red;
12     }
13
14     .gridItem {
15         height: 100%;
16         width: 100%;
17         background-color: orange;
18     }
19 </style>
20 <script>
21     function onloadScrollTop() {
22         // Scroll until we see the grid item's border but not the grid item
23         window.scrollBy(0,-150);
24     }
25 </script>
26 </head>
27 <body style="height: 1000px" onload="onloadScrollTop()">
28
29 <div class="grid fit-content">
30   <div class="gridItem" style="grid-column: 1; grid-row: 1; border-bottom: 100px green solid;"></div>
31 </div>
32
33 <div>There should be a 100px wide green box (grid item's border) above</div>
34
35 </body>
36 <script>
37     window.scrollTo(0,300);
38 </script>
39 </html>