layout/reftests/table-width/balancing-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/table-width/balancing-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,106 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +<title>Balancing of tables (shrinking)</title>
     1.8 +<style type="text/css">
     1.9 +
    1.10 +table, td {
    1.11 +  border: none;
    1.12 +  margin: 0;
    1.13 +  padding: 0;
    1.14 +  border-spacing: 3px;
    1.15 +}
    1.16 +
    1.17 +tr { height: 4em; }
    1.18 +
    1.19 +td { background: black; background: currentColor; }
    1.20 +
    1.21 +td, span { line-height: 1; }
    1.22 +
    1.23 +span {
    1.24 +  display: inline-block;
    1.25 +  width: 50px;
    1.26 +}
    1.27 +
    1.28 +body { width: 900px; }
    1.29 +
    1.30 +</style>
    1.31 +</head>
    1.32 +<body>
    1.33 +
    1.34 +<!--
    1.35 +    cell widths are:
    1.36 +    min   pref   pct
    1.37 +     50    150
    1.38 +     50     50
    1.39 +     50    100*
    1.40 +     50     50   50%
    1.41 +
    1.42 +    and the table has 15px of horizontal border-spacing
    1.43 +
    1.44 +    sizing to       col width total
    1.45 +    min             200
    1.46 +    min/pct         300
    1.47 +    min/spec        400
    1.48 +    pref            600
    1.49 +
    1.50 +  -->
    1.51 +
    1.52 +<div style="width: 100px"><table><tr>
    1.53 +<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
    1.54 +<td style="color:yellow"><span></span></td>
    1.55 +<td style="color:fuchsia" width="100"><span></span></td>
    1.56 +<td style="color:blue" width="50%"><span></span></td>
    1.57 +</tr></table></div>
    1.58 +
    1.59 +<div style="width: 265px"><table><tr>
    1.60 +<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
    1.61 +<td style="color:yellow"><span></span></td>
    1.62 +<td style="color:fuchsia" width="100"><span></span></td>
    1.63 +<td style="color:blue" width="50%"><span></span></td>
    1.64 +</tr></table></div>
    1.65 +
    1.66 +<div style="width: 315px"><table><tr>
    1.67 +<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
    1.68 +<td style="color:yellow"><span></span></td>
    1.69 +<td style="color:fuchsia" width="100"><span></span></td>
    1.70 +<td style="color:blue" width="50%"><span></span></td>
    1.71 +</tr></table></div>
    1.72 +
    1.73 +<div style="width: 365px"><table><tr>
    1.74 +<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
    1.75 +<td style="color:yellow"><span></span></td>
    1.76 +<td style="color:fuchsia" width="100"><span></span></td>
    1.77 +<td style="color:blue" width="50%"><span></span></td>
    1.78 +</tr></table></div>
    1.79 +
    1.80 +<div style="width: 415px"><table><tr>
    1.81 +<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
    1.82 +<td style="color:yellow"><span></span></td>
    1.83 +<td style="color:fuchsia" width="100"><span></span></td>
    1.84 +<td style="color:blue" width="50%"><span></span></td>
    1.85 +</tr></table></div>
    1.86 +
    1.87 +<div style="width: 515px"><table><tr>
    1.88 +<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
    1.89 +<td style="color:yellow"><span></span></td>
    1.90 +<td style="color:fuchsia" width="100"><span></span></td>
    1.91 +<td style="color:blue" width="50%"><span></span></td>
    1.92 +</tr></table></div>
    1.93 +
    1.94 +<div style="width: 700px"><table><tr>
    1.95 +<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
    1.96 +<td style="color:yellow"><span></span></td>
    1.97 +<td style="color:fuchsia" width="100"><span></span></td>
    1.98 +<td style="color:blue" width="50%"><span></span></td>
    1.99 +</tr></table></div>
   1.100 +
   1.101 +<table width="815"><tr>
   1.102 +<td style="color:aqua"><span></span>&#x200b;<span></span>&#x200b;<span></span></td>
   1.103 +<td style="color:yellow"><span></span></td>
   1.104 +<td style="color:fuchsia" width="100"><span></span></td>
   1.105 +<td style="color:blue" width="50%"><span></span></td>
   1.106 +</tr></table>
   1.107 +
   1.108 +</body>
   1.109 +</html>

mercurial