Closed Bug 5799 Opened 25 years ago Closed 25 years ago

td width=% problems when table width is calculated

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: hyp-x, Assigned: karnaze)

References

Details

(Whiteboard: [TESTCASE])

Attachments

(3 files)

The following two tables should look the same,
they should have two identical width cells.
None of the above holds for gecko (1999042908).
As always, both ie4 and ns4.5 are ok.
---------
<table border=5>
  <tr>
    <td width=50%>almaalmaalmaalmaalma</td><td>x</td>
</table>
<p>
<table border=5>
  <tr>
    <td>almaalmaalmaalmaalma</td><td width=50%>x</td>
</table>
Status: NEW → ASSIGNED
Target Milestone: M7
Moving to M9.
Whiteboard: [TESTCASE]
The testcase is not about having TWO tables together,
so I'm making them two separate testcases.
Adding as attachments for easier viewing from the browser.
With 1999-07-31-08 build testcase #1 looks better, but testcase #2 is still bad.
I see a litle extra space in the left cell of testcase #1, but I can only see
that in Apprunner, not in Viewer! This is very strange...
*** Bug 13484 has been marked as a duplicate of this bug. ***
Spoke to karnaze during bug triage today.  Moving to M11.  Not an M10 blocker.
Adding keywords - autoTable, percentCell
Blocks: 16950
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed with latest checkin.
Status: RESOLVED → REOPENED
My #2 testcases is working now, but I just found this testcase
an incomplete one.
In this case the cell asks for more space, so its percentage can be higher.

(It's the opposite case than in #1 when the cell asks the table to grow,
so it's percentage can be _lower_)

While it works if only one cell asks for more space,
when there's more than one it does not grow the table enough.

Try:
<table border=5><tr>
    <td>some text</td><td width=40%>x</td><td width=40%>x</td>
</tr></table>
---
The table should grow more as the percentCells fight for space.

Also:
<table border=5><tr>
    <td>some text</td><td width=50%>x</td><td width=50%>x</td>
</tr></table>
---
In this case the desired with cannot be justified, and in Nav4 (and IE4)
the table grows as large as it can.
This is also why the testcase from bug 13484 is still broken.

I'm reopening the bug.
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
Fixed with 10/24 pm checkins.
Status: RESOLVED → VERIFIED
Testing with 1999102516 mozilla.exe and viewer.exe (std mode) on Win98.
All testcases work well including the one from the duplicate bug.
I'm marking the bug VERIFIED.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: