summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow-paint.html
blob: c137e42bf8a7a2168dbe393c586ce176178a93bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<head>
<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet">
<link href="resources/grid.css" rel="stylesheet">
<style>
    .grid {
        display: grid;
        grid-template-rows: repeat(5, 300px);
        grid-template-columns: repeat(5, 300px);
        background-color: gray;
    }

    .overflowingHorizontalGridItemBlue {
        background-color: blue;
        height: 100%;
        width: 450px;
    }

    .overflowingHorizontalGridItemOrange {
        background-color: orange;
        height: 100%;
        width: 450px;
    }

    .overflowingVerticalGridItemGreen {
        background-color: green;
        height: 500px;
        width: 100%;
    }

    .overflowingVerticalGridItemYellow {
        background-color: yellow;
        height: 500px;
        width: 100%;
    }
    .gridItem {
        background-color: red;
        width: 100%;
        height: 100%;
    }

</style>
</head>
<body>

<div class="grid fit-content">
  <div class="overflowingVerticalGridItemGreen" style="grid-column: 3; grid-row: 1; margin-bottom: -200px;"></div>
  <div class="overflowingVerticalGridItemYellow" style="grid-column: 3; grid-row: 1; margin-bottom: -200px;"></div>

  <div class="overflowingVerticalGridItemYellow" style="grid-column: 3; grid-row: 5; margin-top: -200px;"></div>
  <div class="overflowingVerticalGridItemGreen" style="grid-column: 3; grid-row: 5; margin-top: -200px;"></div>

  <div class="gridItem" style="grid-column: 3; grid-row: 3;"></div>

  <div class="overflowingHorizontalGridItemOrange" style="grid-column: 1; grid-row: 3; margin-right: -150px;"></div>
  <div class="overflowingHorizontalGridItemBlue" style="grid-column: 1; grid-row: 3; margin-right: -150px;"></div>

  <div class="overflowingHorizontalGridItemBlue" style="grid-column: 5; grid-row: 3; margin-left: -150px;"></div>
  <div class="overflowingHorizontalGridItemOrange" style="grid-column: 5; grid-row: 3; margin-left: -150px;"></div>

</div>


</body>
<script>
  window.scrollTo(400, 475);
</script>
</html>