summaryrefslogtreecommitdiff
path: root/layout/reftests/position-relative/table-separate-3.html
blob: a739fb771287b39c557f2a3e17bb3617f241a48f (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
<!DOCTYPE html>
<head>
  <style>
    body {
      background-color: white;
      margin: 0;
    }
    table {
      background-color: red;
      border-collapse: separate;
    }
    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;
      top: 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>