Closed
Bug 2123
Opened 26 years ago
Closed 25 years ago
table-layout:fixed not distributing extra space
Categories
(Core :: Layout: Tables, defect, P2)
Tracking
()
VERIFIED
FIXED
M7
People
(Reporter: andreww, Assigned: karnaze)
References
()
Details
Go to browserwatch.com and look at the "headline news" table.
The right hand side of the table has a thick black "line" that is wider than
it is rendered normally in Nav 4.5.
Summary: right-hand table border rendered too thickly on this site → table-layout:fixed not distributing extra space
The test case (minimized below) has a table with table-layout:fixed. In this
algorithm, the columns are assiged their specified width, and any extra space
(as given by the specified table width attribute, if any) should be divided
between the columns. The spec does not specify how we should distribute the
excess space. To quote the CSS-2 spec():
The width of the table is then the greater of the value of the 'width' property
for the table element and the sum of the column widths (plus cell spacing or
borders). If the table is wider than the columns, the extra space should be
distributed over the columns.
This step of dividing excess width doesn't seem to be getting done. I think it
would make the most sense to divide the excess width using this algorithm:
1) if there are any columns that have no width specified (auto-width columns),
these auto-width columns get an equal portion of the excess width. The
distribution of excess width MUST be equal, and not proportional as in standard
table layout, because the whole point of fixed table-layout is to assign column
widths after the processing of the first row of cells in the table.
2) if there are no auto-width columns, the specified-width columns get the
excess width distributed to them in proportion to their specified width.
Here is the minimized test case:
<html><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000ff" VLINK="#ff0000"
ALINK="#0000FF">
<table width="475" border="0" cellspacing="0" bgcolor="black">
<tr>
<td width="475" valign="top">
<table width="475" cellspacing="0" cellpadding="4" border="0"
bgcolor="#959595" style="table-layout:fixed">
<tr><td bgcolor="#6666cc" valign="middle" align="center"
width="470"><font color="white" face="ARIAL,HELVETICA"><b>BrowserWatch Headline
News</b></font></td></tr>
<tr valign="top">
<td bgcolor="#d4d4d4" width="470">xxx</td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 3•26 years ago
|
||
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Assignee | ||
Updated•26 years ago
|
Target Milestone: M4 → M5
Assignee | ||
Comment 4•26 years ago
|
||
moving to M5
Assignee | ||
Updated•26 years ago
|
Target Milestone: M5 → M6
Assignee | ||
Comment 5•26 years ago
|
||
Moving to M6.
Assignee | ||
Comment 6•25 years ago
|
||
Moving to M8.
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Target Milestone: M8 → M7
Assignee | ||
Comment 7•25 years ago
|
||
fixed with latest checkin.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 8•25 years ago
|
||
Using 6/3 Apprunner, verified fixed.
You need to log in
before you can comment on or make changes to this bug.
Description
•