Closed Bug 12003 Opened 25 years ago Closed 25 years ago

Floated element inside table is badly aligned

Categories

(Core :: Layout, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jeroen, Assigned: buster)

References

()

Details

(Whiteboard: [TESTCASE] hyp-x@inf.bme.hu)

Attachments

(1 file)

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] hyp-x@inf.bme.hu
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.)
Attached file Testcase
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.
Assignee: troy → karnaze
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
Assignee: karnaze → kipp
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.
Status: NEW → ASSIGNED
Target Milestone: M15
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
The test case now works dandy -- right floaters in table cells now work much better.
Status: RESOLVED → VERIFIED
Fixed in the Sept 22nd build.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: