Closed Bug 32841 Opened 24 years ago Closed 16 years ago

Colspans with large min width don't honor proportional cols

Categories

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

defect

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: hysteros, Unassigned)

References

()

Details

(Keywords: testcase, Whiteboard: [awd:tbl])

Attachments

(6 files)

Hi.

On the Websites http://www.cityweb.de, the HTML-Tables are showed in a
wrong layout. At the top, the table is too big, in the middle right, at
bottom too big. The correct layout can be viewed with Netscape 4.0 or
IE 4.
The Bug exists in M12, M13, M14 on all platforms.
hysteros@cityweb.de - are you still seeing this problem on recent builds of 
Mozilla?

Gerv
Yep, it's still there. Confirming using M15 (20000418) on W95. Needs a 
testcase...

Gerv
Status: UNCONFIRMED → NEW
Ever confirmed: true
making a test case.. looks like this one will be tricky.
Keywords: makingtest
Whiteboard: [MAKINGTEST]
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Tim Stallman - any luck with your test case?

Gerv
Removing makingtest to add this bug back into the BugAThon. It's still there 
with 2000-05-27 W95.

Gerv
Keywords: makingtest
Whiteboard: [MAKINGTEST]
Keywords: qawanted
I managed to get the page to format correctly if I remove the <IFRAME> in the
top table, and the <COLGROUP> in the bottom table.  According to
http://www.willcam.com/cmat/html/crossref.html, neither of these tags are
supported by Netscape nor W3C.  Should this be marked invalid?
The problem seems to be a conflict between the width specified in the COL
elements and the actual width of the content in the cells. I have distilled
http://www.cityweb.de down to a bare minimum as a testcase.
Keywords: testcase
Attached file Testcase
The testcase triggers the assertion at line 276 of BasicTableLayoutStrategy.cpp
Attached file reduced testcase
snippet from the table dump:
The error occures inside  AssignNonPctColWidths -> colspanwidth
The width's should be at maximum 5025 and 2325 after this routine.

AssignNonPctColWidths en max=7350 count=0
***START TABLE DUMP***
mColWidths=0 0

 col frame cache ->
0=00BD2CEC 1=00BD2D54
 **START COL DUMP** colIndex=0 isAnonymous=0 constraint=0
  widths=-1 -1 -1 -1 -1 -1 -1 -1 -1  **END COL DUMP**
 **START COL DUMP** colIndex=1 isAnonymous=0 constraint=0
  widths=-1 -1 -1 -1 -1 -1 -1 -1 -1  **END COL DUMP**  ***END TABLE DUMP***
AssignNonPctColWidths ex
***START TABLE DUMP***
mColWidths=3585 3585

 col frame cache ->
0=00BD2CEC 1=00BD2D54
 **START COL DUMP** colIndex=0 isAnonymous=0 constraint=0
  widths=0 0 5025 3585 -1 -1 -1 -1 -1  **END COL DUMP**
 **START COL DUMP** colIndex=1 isAnonymous=0 constraint=0
  widths=0 0 2325 3585 -1 -1 -1 -1 -1  **END COL DUMP**  ***END TABLE DUMP***
Keywords: qawanted
WORKSFORME, 2000-12-27-05 on Windows 98 SE.
The original problem reported here (URL and 1st testcase) is now working.
There is still a 1-pixel round-off error at URL when resizing the window, but
that bug is reported elsewhere. The 2nd testcase only shows that <HR width=490>
is actually 488 pixels wide (try <img width=490 ...> instead and you will see
that the table width is correctly 490px).

I haven't checked if the assertion in BasicTableLayoutStrategy.cpp reported by
Bernd 2000-11-30 is still occuring.
This bug is fixed on the surface, but underneath it is still buggy, the problem 
here is how the min con width of an auto width colspan is distributed to the 
table cells contained in the colspan, while the assertion is fixed, the 
tabledump is still buggy. I will attach a more selfexplaining testcase.
Attached file another testcase
Target Milestone: M17 → ---
Moving to m1.0
Target Milestone: --- → mozilla1.0
QA contact update
QA Contact: chrisd → amar
Attached patch patchSplinter Review
The patch fixes http://bugzilla.mozilla.org/showattachment.cgi?attach_id=21755
but does not fix http://bugzilla.mozilla.org/showattachment.cgi?attach_id=21756.
By this we are 100% compatible to IE6. ;-). The patch passes the regression tests.
If karnaze thinks it is OK, then sr=attinasi (in other words, the code looks
fine, but I do not understand the full implications of the change to the table
code).
r=karnaze. Bernd, it looks like you moved some code from one place to another.
yes, I moved the code because we did not consider the col specified fixed width
for  the distribution of the min width. The patch is in. I am not closing the
bug as the proportional thing is still not working. Changing summary.
Summary: HTML-Tables wrong built. → Colspans with large min width don't honor proportional cols
Keywords: patch
Target Milestone: mozilla1.0 → mozilla0.9.7
Some kind of regression has occurred since build 2000-12-27-05.
http://www.cityweb.de and 1st testcase (attachment 11760 [details]) is now broken again.
Keywords: patch
Whiteboard: [awd:tbl]
-->m101
Target Milestone: mozilla0.9.7 → mozilla1.0.1
Target Milestone: mozilla1.0.1 → Future
mass reassign to default owner
Assignee: karnaze → table
Status: ASSIGNED → NEW
QA Contact: amar → madhur
Target Milestone: Future → ---
Target Milestone: --- → Future
Blocks: 213809
*** Bug 225019 has been marked as a duplicate of this bug. ***
http://bugzilla.mozilla.org/showattachment.cgi?attach_id=21755 and
http://bugzilla.mozilla.org/showattachment.cgi?attach_id=21756 
wfm with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20061231 Minefield/3.0a2pre
the whole portional column stuff got removed
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: