summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-negative-integer-explicit-grid-resolution.html
blob: f107fcf17ad96ee6698382958e211b2441016824 (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
<!DOCTYPE html>
<html>
<link href="resources/grid.css" rel="stylesheet">
<style>
.columnGrid {
    grid-template-columns: 50px 100px;
    /* grid-template-rows is left unset so that the grid items' row is implicit. */
    font: 10px/1 Ahem;
}

.rowGrid {
    grid-template-rows: 50px 100px;
    /* grid-template-columns is left unset so that the grid items' column is implicit. */
    font: 10px/1 Ahem;
}
</style>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.grid');">

<p>Test that negative &lt;integer&gt; positions are resolved against the explicit grid (that is don't account for implicit columns and rows).</p>

<div class="constrainedContainer">
    <div class="grid columnGrid">
        <div class="sizedToGridArea autoRowThirdColumn" data-expected-width="60" data-expected-height="30">XXXXXX XXXXX XXXXX</div>
        <div class="sizedToGridArea autoLastRowAutoLastColumn" data-expected-width="100" data-expected-height="30"></div>
    </div>
</div>

<div class="constrainedContainer">
    <div class="grid columnGrid">
        <div class="sizedToGridArea thirdRowAutoColumn" data-expected-width="50" data-expected-height="30">XXXXXX XXXXX XXXXX</div>
        <div class="sizedToGridArea autoLastRowAutoLastColumn" data-expected-width="100" data-expected-height="0"></div>
    </div>
</div>

<div class="constrainedContainer">
    <div class="grid rowGrid">
        <div class="sizedToGridArea autoRowThirdColumn" data-expected-width="60" data-expected-height="50">XXXXXX XXXXX XXXXX</div>
        <div class="sizedToGridArea autoLastRowAutoLastColumn" data-expected-width="0" data-expected-height="100"></div>
    </div>
</div>

<div class="constrainedContainer">
    <div class="grid rowGrid">
        <div class="sizedToGridArea thirdRowAutoColumn" data-expected-width="60" data-expected-height="30">XXXXXX XXXXX XXXXX</div>
        <div class="sizedToGridArea autoLastRowAutoLastColumn" data-expected-width="60" data-expected-height="100"></div>
    </div>
</div>

</body>
</html>