summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/containing-block-grids.html
blob: 018795671e17afc363e25d2882e3d41d0c282742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<head>
    <link href="resources/grid.css" rel="stylesheet">
    <style>
        div { width: 100px; height: 100px; }
        .relative-positioned-grid { background-color: red; position:relative; }
        .relative-positioned-inline-grid { background-color: red; position: relative; }
    </style>
</head>
<body>
<p>Grids can act as containing blocks for positioned content.</p>
<div class="relative-positioned-grid grid"><div style="background-color: green; left: 0; top: 0"></div></div>
<div class="relative-positioned-inline-grid inline-grid"><div style="background-color:green; left: 0; top: 0"></div></div>
</body>
</html>