Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css-grid-layout / grid-item-border-overflow-paint.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link href="resources/grid.css" rel="stylesheet">
5 <style>
6     .grid {
7         display: grid;
8         grid-template-rows: repeat(2, 100px);
9         grid-template-columns: 100px;
10         width: -webkit-fit-content;
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">
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>