Closed Bug 12003 Opened 21 years ago Closed 21 years ago
Floated element inside table is badly aligned
Look at the page. The table in the center does have thick black vertical lines (+/- 1.5 cm) and that's not supposed to happen.
Summary: Table layout messed up → Table layout messed up (involving right floated image)
Whiteboard: [TESTCASE] firstname.lastname@example.org
There may be multiple problems with this page, since it has complicated nested tables. One of the problems can be seen in the following example: --- <table border> <tr> <td><img align="right" src="http://bugzilla.mozilla.org/ant.jpg"></td> </tr> </table> --- The table gets stretched to the width of the viewport because the image is right-aligned to the viewport instead of the table cell. (Or so it seems.)
Summary: Table layout messed up (involving right floated image) → Floated element inside table is badly aligned
I've tested with <div style="float: right">foo</div> instead of <img> to see the problem is applies generally to floated elements.
Chris, the table cell ends up too wide. This may be a block problem, but I figured we should start with tables. I saw a similar bug recently, but I can't seem to find it
Kipp, I turned on the table reflow debug flags in nsTableFrame.h and it looks like the cell's area frame is saying that its desired size is around NS_UNCONSTRAINED_SIZE in the attachment. I've seen the same problem when a cell contains an image that can't be found even though the cell has its width set.
The test case now works dandy -- right floaters in table cells now work much better.
Fixed in the Sept 22nd build.
You need to log in before you can comment on or make changes to this bug.