Closed Bug 153015 Opened 23 years ago Closed 23 years ago

Image with 'display: block' not tiling correctly in XHTML table

Categories

(Core :: Layout, defect, P3)

x86
Windows XP
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: mozilla_dev, Assigned: attinasi)

Details

Attachments

(2 files)

The enclosed BROKEN.xml file demonstrates a tiling bug using 'display: block' on an <img> tag. When viewed, the image has dropped down below the frame that should be enclosing it. The enclosed WORKAROUND.xml gets around this bug by adding 'valign="bottom"' to the <td> tag of the column containing the troubled image.
Attached file BROKEN.xml
Example of the bug.... When viewed, the red area in the center is where the image should be.
Attached file WORKAROUND.xml
This version of the XHTML file gets around the bug by adding ' valign="bottom"' to the <td> tag of the image that is displayed incorrectly.
-> layout
Assignee: pavlov → attinasi
Component: Image: Layout → Layout
QA Contact: tpreston → petersen
The anchor element around the image has been left to the default display: inline;. Setting that one to block as well (as suggested in the FAQ) solves the problem. I'm not sure what should happen if you put something with display: block; inside something with display: inline;, but I suppose this one is INVALID.
Based on the comments below, marking invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Priority: -- → P3
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: