summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-painting-items-only-once.html
blob: 287d75ec7d23112b01797b88f3552a390ca9ba6b (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
52
<!DOCTYPE html>
<html>
<head>
    <link href="resources/grid.css" rel="stylesheet">
    <style>
        .grid2Rows2Columns {
            grid-template-columns: auto auto;
            grid-template-rows: auto auto;
        }

        .gridAreas2Rows {
            grid-template-areas: "a a"
                                 "b b";
        }

        .gridAreas2Columns {
            grid-template-areas: "a b"
                                 "a b";
        }

        .areaA {
            grid-area: a;
        }

        .areaB {
            grid-area: b;
        }
    </style>
</head>
<body>
    <div>
        This test shows 4 grids where all the items are placed in several cells (span or areas).<br>
        It passes if these grid items are painted only once.
    </div>
    <div class="grid grid2Rows2Columns">
        <div class="firstRowBothColumn">item</div>
        <div class="secondRowBothColumn">item</div>
    </div>
    <div class="grid grid2Rows2Columns">
        <div class="bothRowFirstColumn">item</div>
        <div class="bothRowSecondColumn">item</div>
    </div>
    <div class="grid gridAreas2Rows">
        <div class="areaA">item</div>
        <div class="areaB">item</div>
    </div>
    <div class="grid gridAreas2Columns">
        <div class="areaA">item</div>
        <div class="areaB">item</div>
    </div>
</body>
</html>