summaryrefslogtreecommitdiffstats
path: root/layout/reftests/position-relative/table-separate-4.html
blob: 8febf8f23761e8268a4a3ef0223ab7802415f177 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<head>
  <style>
    html {
      line-height: 1.25;
    }
    body {
      background-color: white;
      margin: 0;
    }
    table {
      background-color: red;
      border-collapse: separate;
      position: absolute;
      top: 645px;
    }
    thead {
      background-color: pink;
    }
    tbody {
      background-color: grey;
    }
    tfoot {
      background-color: orange;
    }
    tr {
      background-color: green;
    }
    td:first-child {
      background-color: cyan;
    }
    td {
      background-color: blue;
      border-style: solid;
      border-width: 5px;
      border-color: gold;
    }
    colgroup {
      background-color: purple;
    }
    col:first-child {
      background-color: khaki;
    }
    .rel {
      position: relative;
      bottom: 215px;
    }
  </style>
</head>
<body>
  <table>
    <colgroup>
      <col>
      <col>
    </colgroup>
    <thead class="rel">
      <tr>
        <td class="rel">XXX</td>
        <td class="rel">YYY</td>
      </tr>
    </thead>
    <tbody class="rel">
      <tr>
        <td class="rel">XXX</td>
        <td>YYY</td>
      </tr>
      <tr>
        <td>XXX</td>
        <td rowspan=2 class="rel">YYY</td>
      </tr>
      <tr class="rel">
        <td class="rel">XXX</td>
      </tr>
      <tr>
        <td colspan=2 class="rel">XXX</td>
      </tr>
    </tbody>
    <tfoot>
      <tr>
        <td class="rel">XXX</td>
        <td>YYY</td>
      </tr>
    </tfoot>
  </table>
</body>