Closed Bug 78000 Opened 23 years ago Closed 23 years ago

Extra Empty Space in Table Cells

Categories

(Core :: Layout: Tables, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 22274

People

(Reporter: cfc, Assigned: karnaze)

Details

Attachments

(4 files)

From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BuildID:    2001042704

This appears to be a bug in your standards-compliance. In a table with all 
padding, spacing, and such set to 0, it still adds extra empty space beneath an 
image placed inside that table for no apparent reason. I'm reasonably certain 
there is nothing in my code, nor in the CSS/HTML standards, that should cause 
this to happen.

I tested it with two doctypes (XHTML 1.0, HTML 4.01) and the bug appears in 
both. The problem does disappear when I remove all doctypes, presumeably 
triggering Mozilla's 'quirky' mode, but this doesn't change the fact that it's 
wrong in 'standards' mode; it's not standards-compliant.

I've minimized the HTML code as much as possible. Please note the CSS rule I've 
set on "body *" in the two attached examples. While not strictly necessary to 
reproduce the bug, it does illustrate an interesting fact about it -- Changing 
the font size seems to effect how large the blank space added inside the table 
cell is. Explicitly setting padding & margin on table, td, tr, and img to 0px 
in a CSS rule has no effect.

Reproducible: Always
Steps to Reproduce:
See the HTML documents I've attached. Or:
1. Inside a standards-compliant HTML document, create a table with cellpadding 
and cellspacing set to 0.
2. Place an image inside a table cell.
3. You may have to create multiple cells, or borders, as reference points to 
pinpoint the location of the empty space.

Actual Results:  Extra empty space was added beneath the image placed in the 
table cell. (See description above for further details)

Expected Results:  There should have been no space on any side of the image 
between it and the edge of the table cell.
Looks like you'll need to download the images and testcase to your hard drive;
the images appear broken when viewing on this site, probably due to the
directory structure.

*** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
 This is a dupe of bug # 22274. Marking it as verified
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: