Closed Bug 12744 Opened 25 years ago Closed 25 years ago

TD HEIGHT= being over-ridden by ghost cell content?

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 5821

People

(Reporter: sidr, Assigned: karnaze)

References

()

Details

Summary:

In a table row consisting entirely of TD cells sized with HEIGHT=6,
and containing only images no larger than 6 pixels tall, an anchor (A)
tag surrounding an IMG increases the height of the row
to what appears to be the same height as a row containing a non-breaking space.

Since images are not text, this makes no sense. Changing the size of the
font with the FONT SIZE attribute, surrounding an IMG, the row gets taller yet.
This may or may not make sense (should the FONT tag imply textual content,
even when ther is none?).

Surrounding the IMG with a P container inside the A container has the effect
of sizing the TD cell at the same size as the IMG.

Additional discussion at http://www.albedo.net/~sidr/index.test.simple.2.html,
in the context of examples. Screenshots also provided for M9, M7, NN4.6, IE5.

Occurs on:

(At least) Mozilla M9, build 1999082412, and Mozilla M7, on Windows NT.
Given the nature of the display problem, it likely occurs cross-platform.
Does not occur on Netscape Navigator 4.61 or Internet Explorer 5.

How to duplicate:

1. Create an HTML page.
2. Create a table with a row consisting of at least two TD cells, setting HEIGHT for all to only a few pixels.
3. Fill the cells with IMGs of any width and HEIGHT less than or equal to the
HEIGHT of the TD cells.
4. Duplicate the row twice.
5. Surround at least one of the IMGs in the second row with an anchor (A) tag.
6. Substitute a non-breaking space for one of the IMGs in a TD in the third row.
7. Render the page in Mozilla.

Expected:

The first two rows should be the same height, as defined by TD HEIGHT=
The third row should be somewhat taller, as defined by the font size.

Occuring:

The second row is taller than the first, the same height as the third row.

Suggestions:

Try manually substituting a larger font to confirm or disconfirm the inferences
above. Then, happy hunting!
Assignee: troy → karnaze
Component: Layout → HTMLTables
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 5821 ***
Status: RESOLVED → VERIFIED
Agreed. This is a duplicate of 5821. Marking as verified duplicate.
You need to log in before you can comment on or make changes to this bug.