Percent widths inside fixed-width table cells

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Percent widths inside fixed-width table cells

Boris Zbarsky
Hmm... So on reflow branch with my latest changes the following testcase:

   <table border="1"><tr>
     <td style="width: 20px">
       <img src="http://www.mozilla.org/images/mlogo.gif" style="width: 50%">
     </td>
   </tr></table>

renders the cell at the intrinsic width of the image instead of at the specified
width (the latter is what trunk does).

Note that I get the same result even without my min-width change for tables from
earlier today.

I guess the XXX comment in IntrinsicForContainer about using 0 for min-width in
if the specified width is a percentage applies here?

-Boris
_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout