Closed Bug 89482 Opened 23 years ago Closed 23 years ago

table cells given extra vertical space in standards mode

Categories

(Core :: Layout: Tables, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 22274

People

(Reporter: geoff.elliott, Assigned: karnaze)

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010628
BuildID:    2001062815

In standards mode the attached code produces extra vertical space at the bottom
of each cell. You can set border="0" and the effect is the same; with border="1"
you notice that engine isn't getting the valign="bottom" correct. 

The code displays fine in quirks mode, which makes me wonder if this extra
spacing is considered correct behavior by mozilla.  This code displays fine in
Netscape 4.x and Internet Explorer 5.

Reproducible: Always
Steps to Reproduce:
1. Save the attached code in a new HTML file.
2. Load it up and enjoy.

Actual Results:  The page loads with a few pixels of space at the bottom of each
cell.

Expected Results:  There should be no space, the images should be flush against
the borders, valigned to the bottom.

The culprit HTML:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Cell Spacing HTML</title>
</head>

<body>
<table border="1" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td><img src="http://www.mozilla.org/images/mozilla-banner.gif" alt="Mozilla
Banner"></td>
</tr>
<tr valign="bottom">
<td><img src="http://bugzilla.mozilla.org/ant.jpg" alt="Bug"></td>
</tr>
</table>
</body>
</html>
Actually, we're rendering this correctly.  Please read the bug this is a
duplicate of for the reasoning behind this and how to get the rendering you
want.

*** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.