summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/compute-intrinsic-widths-scrollbar.html
blob: 758a962c3bfa70adee85010170ed0420a86285ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<link href="resources/grid.css" rel="stylesheet">
<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel=stylesheet>
<style>
    .grid {
        overflow-y: scroll;
        grid-template-columns: repeat(4, 50px);
    }
</style>
<script src="../../resources/check-layout.js"></script>
<p>This test checks that grid container scrollbar is computed properly during intrinsic width calculation.</p>
<body onload="checkLayout('.grid')">
    <div class="grid min-content" data-expected-client-width="200">
        item
    </div>
    <div class="grid max-content" data-expected-client-width="200">
        item
    </div>
</body>