summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/box-sizing/css-table-collapse.html
blob: 03feaceeb4390c9b71966e718c514003f9acf133 (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
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <style>
        .table {
            display: table;
            border-collapse: collapse;
            border: 25px solid green;
            border-top: 10px solid cyan;
            position: absolute;
            box-sizing: border-box;
            outline: 5px solid blue;
        }
        .tbody { display: table-row-group; }
        .tr { display: table-row; }
        .td { display: table-cell; }
        .block {
            background-color: yellow;
            height: 50px;
            width: 50px;
        }
    </style>
    <script src="../../resources/check-layout.js"></script>
    <script>
        window.onload = function () {
            checkLayout(".table");
        }
    </script>
    <div class="table" data-expected-height="85">
        <div class="tbody">
            <div class="tr">
                <div class="td">
                    <div class="block"></div>
                </div>
            </div>
        </div>
    </div>
    <div style="top: 200px;" class="table" data-expected-height="85">
        <div class="tbody">
            <div class="tr">
                <div class="td">
                    <div class="block"></div>
                </div>
            </div>
        </div>
    </div>
    <div style="bottom: 100px;" class="table" data-expected-height="85">
        <div class="tbody">
            <div class="tr">
                <div class="td">
                    <div class="block"></div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>