Closed Bug 10140 Opened 25 years ago Closed 25 years ago

captions are expanding size of tables

Categories

(Core :: Layout: Tables, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: karnaze)

References

()

Details

In the first three tests in the above page, captions seem to be setting the size of tables. The widths of the caption and the table should instead be independent. The width property on the table is being ignored. Expected: widths of first three tests are as described Actual: table is always just bigger than the caption, based on what the caption width should be. The difference seems to be double the border width of the table. Tested on: viewer and apprunner, 1999-07-17, Linux.
Status: NEW → ASSIGNED
Target Milestone: M11
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Whiteboard: [WORKSFORME]
The widths of the captions and the tables now seem to be independent in the latest builds, marking it WORKSFORME. Tested on apprunner, 1999073008 Linux, 1999073011 Windows 95
Status: RESOLVED → VERIFIED
Reopening. This bug has partially regressed. The second test case in the above page is now wrong. Captions are expanding the widths of tables. See http://www.w3.org/TR/REC-CSS2/tables.html#q5 for why this is wrong.
Status: VERIFIED → REOPENED
Resolution: WORKSFORME → ---
Summary: captions are setting size of tables → captions are expanding size of tables
Whiteboard: [WORKSFORME]
Steve, the caption frame is a block frame. In the 2nd table, the caption has a style width set and is saying that its max element size is 600px (the same as its desired size) which is wrong. If, I am not mis-using the block frame class here, then this problem must surely be causing a bunch of other block related problems.
Assignee: karnaze → buster
Status: REOPENED → NEW
Please update the TFV from the current M11 state.
seems pretty important. will look into this for M16.
Severity: normal → major
Status: NEW → ASSIGNED
Priority: P3 → P1
Target Milestone: M11 → M16
chris: this is the bug we talked about this afternoon. I think the block frame is doing the right thing returning it's CSS-specified width as its max element width. Please investigate further. Troy, does that sound like the right definition of "max-element-size?"
Assignee: buster → karnaze
Status: ASSIGNED → NEW
This is fixed. There is still a problem where the caption is not honoring box-sizing (so the caption will appear wider than the table) but I have a fix for that and will check it in shortly.
Status: NEW → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
Verifying this bug based on the first three tables/captions displaying correctly.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.