summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/percent-intrinsic-track-breadth.html
blob: 277f3968a9f496cb06b9c2fb4f082a1fbdbf590b (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
<!DOCTYPE html>
<html>
<head>
<link href="resources/grid.css" rel="stylesheet">
<style>
.intrinsic {
    grid-template-rows: max-content;
    grid-template-columns: max-content;
    height: 500px;
    width: 500px;
}

.percentage {
    grid-template-rows: 100%;
    grid-template-columns: 100%;
    height: 100%;
    width: 100%;
}
</style>
</head>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.percentage');">
    <p>This test checks that percentage track breadths of intrinsic size are treated as auto.</p>
    <div class="grid intrinsic">
        <div class="grid percentage">
            <div class="sizedToGridArea" data-expected-width="50" data-expected-height="10">XXXXX</div>
        </div>
    </div>
</body>
</html>