Closed Bug 86123 Opened 24 years ago Closed 24 years ago

Table layout problem with colspan (BuildID: 2001061504)

Categories

(Core :: Layout: Tables, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: m.wawoczny, Assigned: karnaze)

Details

Attachments

(3 files)

Layout messed up with colspan tag in following HTML code: <HTML> <BODY> <FORM> <TABLE WIDTH="100%" CELLPADDING=2 CELLSPACING=0 BORDER=0> <TR> <TD> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="100%"> <TR> <TD WIDTH=120 ALIGN="LEFT">ABCDEFGHIJKL<BR></TD> <TD WIDTH=120>ABCDEFGHIJKL<BR></TD> </TR> <TR> <TD COLSPAN=2 VALIGN="BOTTOM">ABCDEFGHIJKL MNOPQR:<BR> ABCDEFGHIJKL MNOPQR <INPUT TYPE="RADIO" VALUE="ODMIANA" NAME="DICT">ABCDEFGHIJKL MNOPQR <INPUT TYPE="RADIO" VALUE="TEZAURUS" NAME="DICT">ABCDEFGHIJKL MNOPQR <INPUT TYPE="RADIO" VALUE="" NAME="DICT" CHECKED>ABCDEFGHIJKL MNOPQR </TD> <TD CLASS="AZACH" ALIGN="RIGHT" VALIGN="TOP">ABCDEFGHIJKL MNOPQR</TD> </TR> </TABLE> </TD> </TR> </TABLE> </FORM> </BODY> </HTML> Page is displayed properly in other browsers: Netscape 4.x Internet Explorer Properly viewed: First row with 2 columns, one 120pixels width second resized to 100%-120pixels. Second row - 3 columns, first column (colspan 2) resized to width of 2 columns on previous row, then 3'rd column. What I get: Colspan attribute should depend on previous row, which is 240pixels width (first column 120pixels, and second 120pixels resized to free space of table - table width = 100%) but depends only on html defined size 240pixels. So first column (colspan 2) of "bad" row is resized to 240 and page layout is messed up. Best Regards Marek Wawoczny
I would think that cells with explicit widths should be honored above those without any set widths. So the 2 cells with width="120" would be the constraining factor; the rest of the cells would adjust to compensate. This is the behavior seen in Mozilla. I'm pretty sure the W3C specs would agree, but I could be wrong.
Yes, cells with explicit widths should be honored above those without any set widths but Mozilla render this first row like this: 120pix first column Rest of table second column Yes? So colspan attribute should depend on this which was rendered before by engine and not on HTML code. Then layout won't be messed up by wrong HTML code (non W3C specs code).
No, actually, I see this: First Row: First cell 120px Second cell 120px No cell rest of table width Second Row: First cell 240px (colspan 2) Second cell rest of table width Turning on the table borders shows this. If you are seeing something different, can you attach a screenshot?
Attached image Mozilla screenshoot
Attached image Explorer screenshoot
Attached image Netscape screenshoot
Ahh, ok, yes U are right. Now I can see ;) I'm attaching screenshoots from Netscape 4.x, Internet Explorer and Mozilla. Seems that this is not bug, but in my opinion last cell in row, when has size defined < rest of table (when table width is defined) should be resized to free space. But shouldn't be resized when table width is not defined.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
As per the reporters comments this bug is invalid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: