layout/reftests/bugs/368504-4.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/368504-4.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,122 @@
     1.4 +<html>
     1.5 +<head><style>
     1.6 +  /* cellspacing=0 cellpadding=0          */
     1.7 +  table  { border-spacing: 0 }
     1.8 +  td, th { padding: 0 }
     1.9 +
    1.10 +  /* Colors for the three cell types      */
    1.11 +  td.a   { background: lightgreen; }
    1.12 +  td.b   { background: yellow;     }
    1.13 +  td.c   { background: blue;       }
    1.14 +
    1.15 +  /* Shrink-wrapping div                  */
    1.16 +  div.shrinkwrap { width: 1px;   }
    1.17 +
    1.18 +  /* Set min-width on colspanning cell    */
    1.19 +  td.c { min-width: 500px; }
    1.20 +
    1.21 +  /* Set %-width on 2nd cell of first row in tables */
    1.22 +  table#t0 td.b { width:   1% }
    1.23 +  table#t1 td.b { width:   5% }
    1.24 +  table#t2 td.b { width:  10% }
    1.25 +  table#t3 td.b { width:  30% }
    1.26 +  table#t4 td.b { width:  50% }
    1.27 +  table#t5 td.b { width:  75% }
    1.28 +  table#t6 td.b { width:  80% }
    1.29 +  table#t7 td.b { width:  90% }
    1.30 +  table#t8 td.b { width:  95% }
    1.31 +  table#t9 td.b { width: 100% }
    1.32 +
    1.33 +</style></head>
    1.34 +<body>
    1.35 +<div class="shrinkwrap">
    1.36 +<table id="t0"><tr>
    1.37 +    <td class="a">foo</td>
    1.38 +    <td class="b">foo</td>
    1.39 +  </tr><tr>
    1.40 +    <td class="c" colspan="2">&nbsp</td>
    1.41 +</tr></table>
    1.42 +</div>
    1.43 +
    1.44 +<div class="shrinkwrap">
    1.45 +<table id="t1"><tr>
    1.46 +    <td class="a">foo</td>
    1.47 +    <td class="b">foo</td>
    1.48 +  </tr><tr>
    1.49 +    <td class="c" colspan="2">&nbsp</td>
    1.50 +</tr></table>
    1.51 +</div>
    1.52 +
    1.53 +<div class="shrinkwrap">
    1.54 +<table id="t2"><tr>
    1.55 +    <td class="a">foo</td>
    1.56 +    <td class="b">foo</td>
    1.57 +  </tr><tr>
    1.58 +    <td class="c" colspan="2">&nbsp</td>
    1.59 +</tr></table>
    1.60 +</div>
    1.61 +
    1.62 +<div class="shrinkwrap">
    1.63 +<table id="t3"><tr>
    1.64 +    <td class="a">foo</td>
    1.65 +    <td class="b">foo</td>
    1.66 +  </tr><tr>
    1.67 +    <td class="c" colspan="2">&nbsp</td>
    1.68 +</tr></table>
    1.69 +</div>
    1.70 +
    1.71 +<div class="shrinkwrap">
    1.72 +<table id="t4"><tr>
    1.73 +    <td class="a">foo</td>
    1.74 +    <td class="b">foo</td>
    1.75 +  </tr><tr>
    1.76 +    <td class="c" colspan="2">&nbsp</td>
    1.77 +</tr></table>
    1.78 +</div>
    1.79 +
    1.80 +<div class="shrinkwrap">
    1.81 +<table id="t5"><tr>
    1.82 +    <td class="a">foo</td>
    1.83 +    <td class="b">foo</td>
    1.84 +  </tr><tr>
    1.85 +    <td class="c" colspan="2">&nbsp</td>
    1.86 +</tr></table>
    1.87 +</div>
    1.88 +
    1.89 +<div class="shrinkwrap">
    1.90 +<table id="t6"><tr>
    1.91 +    <td class="a">foo</td>
    1.92 +    <td class="b">foo</td>
    1.93 +  </tr><tr>
    1.94 +    <td class="c" colspan="2">&nbsp</td>
    1.95 +</tr></table>
    1.96 +</div>
    1.97 +
    1.98 +<div class="shrinkwrap">
    1.99 +<table id="t7"><tr>
   1.100 +    <td class="a">foo</td>
   1.101 +    <td class="b">foo</td>
   1.102 +  </tr><tr>
   1.103 +    <td class="c" colspan="2">&nbsp</td>
   1.104 +</tr></table>
   1.105 +</div>
   1.106 +
   1.107 +<div class="shrinkwrap">
   1.108 +<table id="t8"><tr>
   1.109 +    <td class="a">foo</td>
   1.110 +    <td class="b">foo</td>
   1.111 +  </tr><tr>
   1.112 +    <td class="c" colspan="2">&nbsp</td>
   1.113 +</tr></table>
   1.114 +</div>
   1.115 +
   1.116 +<div class="shrinkwrap">
   1.117 +<table id="t9"><tr>
   1.118 +    <td class="a">foo</td>
   1.119 +    <td class="b">foo</td>
   1.120 +  </tr><tr>
   1.121 +    <td class="c" colspan="2">&nbsp</td>
   1.122 +</tr></table>
   1.123 +</div>
   1.124 +</body>
   1.125 +</html>

mercurial