Closed Bug 63942 Opened 24 years ago Closed 23 years ago

Extra space beneath nested table in strict mode (but not quirks)

Categories

(Core :: Layout: Tables, defect)

defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME
Future

People

(Reporter: sicking, Assigned: karnaze)

Details

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

Attachments

(5 files)

I'm not sure if this is a parser issue or a layout issue. I using some xsl- magic on the server I generate the following file: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC- html40/strict.dtd"> <html> <body> <table> <tr><td /><td /><td /></tr> <!-- remove td-slashes --> <tr> <td colspan="3" style="background-color: green; padding: 0;"> <table border="0" cellpadding="0" cellspacing="0" style="border: 1px solid pink;"> <tr> <td style="padding: 0; border: 1px solid blue"><img src="http://www.mozilla.org/images/mozilla-banner.gif"></td> </tr> </table> </td> </tr> </table> </body> </html> Even though this is slightly errorous html due to the empty-xml-element slashes the result seems strange. Also it would be nice if mozilla didn't choke on theese slashes since it might become rather popular to produce html using xsl on the server. Actual result: Then *inner* table gets a 2px border-spacing even though it has cellspacing="0". This can be seen as a green area between the pink and the blue border. Expected result: The blue border should be directly inside the pink border. The strange thing is that this works if any of the td-slashes is removed. In other words: the trailing slashes in the *outer* table gives a cellspacing=2 on the *inner* table!!
I see the green area with or without the TD-slashes!. However, removing the DOCTYPE gives me the expected result. In other words TD-slash is not the problem...I think :-/
Status: NEW → ASSIGNED
Target Milestone: --- → Future
updated qa contact.
QA Contact: janc → bsharma
QA Contact: bsharma → moied
Changing summary, reassigning.
Assignee: harishd → karnaze
Status: ASSIGNED → NEW
Component: Parser → HTMLTables
QA Contact: moied → amar
Summary: Wrong layout when elements contain empty-xml-element slashes → Extra space beneath nested table in strict mode (but not quirks)
Whiteboard: [awd:tbl]
The table spacing bug does not appear in this test case because it puts Moz in quirks mode.
(Shouldn't this be strict mode?) Table padding is correct.
In strict mode, Mozilla is showing improper spacing/padding top and bottom, and (possibly in a related bug) allowing hr elements to extend over top of the table. Table spacing/padding left and right is proper.
Jonas, your testcase WFM 20002011103 win98
yep, this seems to have been fixed sometime along the way. arielmt@thornton2.com: your testcases seems to work too, except for the <hr> that overlaps the image in the last testcase. But that is a different bug and should be filed as such
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
WFM. Marking verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: