summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-width/balancing-2.html
blob: c43f41476747ff29b2b7252c443c536e36404663 (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE HTML>
<html>
<head>
<title>Balancing of tables (growing)</title>
<style type="text/css">

table, td {
  border: none;
  margin: 0;
  padding: 0;
  border-spacing: 3px;
}

tr { height: 1.5em; }

td { background: black; background: currentColor; }

td, span { line-height: 1; }

span {
  display: inline-block;
  width: 25px;
}

</style>
</head>
<body>

<!--
    cell widths in the first table are:
    min   pref   pct
     25     75
     25     25
      0      0
     25     50*
     25     25   50%

    and the table has 18px of horizontal border-spacing

    pref width of columns is 300px

  -->

<table><tr>
<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
<td style="color:yellow"><span></span></td>
<td style="color:red"></td>
<td style="color:fuchsia" width="50"><span></span></td>
<td style="color:blue" width="50%"><span></span></td>
</tr></table>

<table width="518"><tr>
<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
<td style="color:yellow"><span></span></td>
<td style="color:red"></td>
<td style="color:fuchsia" width="50"><span></span></td>
<td style="color:blue" width="50%"><span></span></td>
</tr></table>

<!-- XXXdholbert: Change "width: 0px" to width="0px" in next 2 cases -->
<table width="438"><tr>
<td style="color:aqua" width="75"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
<td style="color:yellow" width="25"><span></span></td>
<td style="color:red; width: 0px"></td>
<td style="color:fuchsia" width="50"><span></span></td>
<td style="color:blue" width="50%"><span></span></td>
</tr></table>

<table width="418"><tr>
<td style="color:aqua" width="10%"><span></span></td>
<td style="color:yellow" width="10%"><span></span></td>
<td style="color:red; width: 0px"></td>
<td style="color:fuchsia" width="10%"><span></span></td>
<td style="color:blue" width="50%"><span></span></td>
</tr></table>

<table width="435"><tr>
<td style="color:aqua" width="75"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
<td style="color:yellow"></td>
<td style="color:fuchsia" width="50"><span></span></td>
<td style="color:blue" width="50%"><span></span></td>
</tr></table>

<table width="415"><tr>
<td style="color:aqua" width="15%"><span></span></td>
<td style="color:yellow"></td>
<td style="color:fuchsia" width="15%"><span></span></td>
<td style="color:blue" width="50%"><span></span></td>
</tr></table>

<table width="415"><tr>
<td style="color:aqua"></td>
<td style="color:yellow"></td>
<td style="color:fuchsia"></td>
<td style="color:blue"></td>
</tr></table>

</body>
</html>