summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/413286-4b.html
blob: 1c2b43efe40f3377ed84e1caf5342e10e659c01f (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
<!DOCTYPE HTML>
<html>
<head>
  <title>First two columns have no width</title>
  <style>
    table     { width: 500px;      }
    td        { height: 2em;       }
    td.aqua   { background: aqua   }
    td.lime   { background: lime   }
    td.blue   { background: blue   }
    td.pink   { background: pink   }
    td.yellow { background: yellow }

    td.lowPct    { width: 10% }
    td.medPct    { width: 40% }
    td.specWidth { width: 50px }
  </style>
</head>
<body>
  <h2>No third column</h2>
  <table cellpadding="0" cellspacing="0">
    <tr>
      <td class="aqua"></td>
      <td class="aqua"></td>
    </tr><tr>
      <td class="lime"></td>
      <td class="blue"></td>
    </tr>
  </table>

  <h2>Third column with low percent width</h2>
  <table cellpadding="0" cellspacing="0">
    <tr>
      <td class="aqua"></td>
      <td class="aqua"></td>
      <td class="yellow lowPct"></td>
    </tr><tr>
      <td class="lime"></td>
      <td class="blue"></td>
      <td class="pink lowPct"></td>
    </tr>
  </table>

  <h2>Third column with medium percent width</h2>
  <table cellpadding="0" cellspacing="0">
    <tr>
      <td class="aqua"></td>
      <td class="aqua"></td>
      <td class="yellow medPct"></td>
    </tr><tr>
      <td class="lime"></td>
      <td class="blue"></td>
      <td class="pink medPct"></td>
    </tr>
  </table>

  <h2>Third column with preferred width</h2>
  <table cellpadding="0" cellspacing="0">
    <tr>
      <td class="aqua"></td>
      <td class="aqua"></td>
      <td class="yellow specWidth"></td>
    </tr><tr>
      <td class="lime"></td>
      <td class="blue"></td>
      <td class="pink specWidth"></td>
    </tr>
  </table>
</body>
</html>