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