summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-bordercollapse/bug1394226-notref.html
blob: f9ee6230eebaa0d9f222f720f1fa8d18c66a6837 (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
<!DOCTYPE html>
<html>
<head>
<title>Table border collapse</title>
<style>
  table {
    border-collapse: collapse;
  }
  tr.odd {
    background-color: LightCyan;
  }
  tr.even {
    background-color: LightSkyBlue;
  }
  td {
    border: 5px solid DarkBlue;
  }
  .inner td {
    border: 5px solid red;
  }
  .inner tr:first-child td {
    border-top: 5px solid DarkBlue;
  }
  .inner tr td:first-child {
    border-left: 5px solid DarkBlue;
  }
  .inner tr:last-child td {
    border-bottom: 5px solid DarkBlue;
  }
  .inner tr td:last-child {
    border-right: 5px solid DarkBlue;
  }
  div {
    height: 10px;
  }
</style>
</head>
<body>
  <div></div>
  <table>
    <caption></caption>
    <tr class="odd">
      <td>Cell 1-1</td>
      <td>Cell 1-2</td>
    </tr>
    <tr class="even">
      <td>Cell 2-1</td>
      <td>Cell 2-2
        <table class="inner">
          <tr class="odd">
            <td>Cell 2-2/1-1</td>
            <td>Cell 2-2/1-2</td>
          </tr>
          <tr class="even">
            <td>Cell 2-2/2-1</td>
            <td>Cell 2-2/2-2</td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</body>
</html>