Closed Bug 2509 Opened 26 years ago Closed 25 years ago

table cell renders too large in fixed width table

Categories

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

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: andreww, Assigned: karnaze)

References

()

Details

Attachments

(1 file)

compare gecko build 011999 to nav 4.5 on windows - the table row that should at "whats new at...." is rendered entirely black and covers the whole table.
<HTML><HEAD></HEAD><BODY> <TABLE><TR><TD BGCOLOR="#cccccc" WIDTH="435"> <!-- the interior table has "zero" width, as the first row is "believed" to have zero width and style is "table-layout: fixed" .. Notice the red stripe on the LHS (the zero-width table). Win95 Jan19 optimized. --> <TABLE cellpadding=0 cellspacing=0 style="table-layout: fixed; border: solid red 1px"> <TR><TD>What's New on WebDeveloper.com</TD></TR> <TR><TD>and some other content</TD></TR> </TABLE> </TD></TR></TABLE> </BODY></HTML>
Assignee: karnaze → buster
note that it is meaningless to compare raptor layout and Nav4 layout when table-layout: fixed is specified. Nav4 doesn't support CSS-2 fixed table layout at all, and fixed table layout may legally give you a table that doesn't match an auto layout table even for the same width specifications. I'll take a look at this one.
Okay. First, I wasn't making a comparison, and second, I now realize that my example above is bogus (and not well explained anyways). However, there is a glitch in the distribution of the auto width to the columns that are neither part of a colframe nor have a cell with specified width. The code in FixedTableLayoutStrategy.cpp looks right but the following HTML/CSS example does not distribute the remaining available width to the second column (instead it gets zero width). <html><head><style> TABLE {table-layout:fixed; border: solid red 1px; width: 400} TD {border: solid green 1px;} TD.one {border: solid blue 1px; width: 300} TD.two {border: solid blue 1px;} </style></head><body> <!-- this table should derive the width of the second column from what's left over from the table width after subtracting the first column width --> <TABLE><TR> <TD class="one">What's New on WebDeveloper.com</TD> <TD class="two">umm</TD> </TR><TR> <TD>blah blah blah blah blah blah blah blah blah blah blah blah</TD> <TD>blah blah blah blah blah blah blah blah blah blah blah blah</TD> </TR></TABLE> </body></html> (In the case of webdeveloper.com, it is a one column table, but that first column should get its auto-width from the table width. No?)
Status: NEW → ASSIGNED
Setting all current Open/Normal to M4.
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Target Milestone: M4 → M5
Summary: table cell renders too large.. → table cell renders too large in fixed width table
setting target milestone to M5.
changed misc bugs to M6
setting my table bugs to M9
buster: by the way, karnaze checked in a fix for this on jun02. (see the test case (attached) to confirm for this report). I believe this is FIXED but I leave it to you (or chrisd) to deliver the coup de grace. (original URL is also OK on this point).
Forgot to note: fix for the same 'table-layout: fixed' problem was noted on bug #2123 'table-layout:fixed not distributing extra space' -- VERI FIXE
Assignee: buster → karnaze
Status: ASSIGNED → NEW
this should have been assigned to Chris. Chris, please verify that this is fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Using 8/5 Apprunner, verified fixed.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: