summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/absolute-positioning-definite-sizes.html
blob: 1fbd9b8408924fcbae1dfba4d37a6a959aa24ff0 (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
<!DOCTYPE html>
<link href="resources/grid.css" rel="stylesheet">
<style>
.grid {
    grid-template: 50px 1fr / 1fr;

    position: absolute;
    left: 50px;
    top: 50px;

    width: 200px;
    height: 200px;

    border: 7px solid #ccc;
    font: 10px/1 Ahem;
}

.row1 {
    grid-row-start: 1;
    background-color: yellow;
}

.row2 {
    grid-row-start: 2;
    background-color: cyan;
}
</style>

<p>Items should extend to fill the width of the absolutely positioned grid container.</p>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.grid')">

<div class="grid">
    <div class="row1" data-expected-height="50"  data-expected-width="200">XXX X</div>
    <div class="row2" data-expected-height="150" data-expected-width="200">XX XXX XX</div>
</div>

</body>