Closed Bug 83955 Opened 25 years ago Closed 25 years ago

(see 22274) Table cell always font-height high in XHTML 1.0 Strict DTD

Categories

(Core :: Layout: Tables, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 22274

People

(Reporter: adam.olszynski, Assigned: asa)

Details

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0) BuildID: 2001050515 Bad: when rendering tables with height sets to 1px <td><img src="smth.gif" height="1" width="1" /></td> it look like height is set to the font size. Reproducible: Didn't try Steps to Reproduce: 1. USE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1- strict.dtd"> 2. Generate table with background (eg black if white page) put into <td> image that is 1x1 px Actual Results: <td>'s height is not 1px :( it's look like letter height Expected Results: 1px <td> height
->HTMLTables, cc heikki is the title relevant? couldn't it be made to something better? Reporter, it would be really nice if you could provide us with a testcase, i.e. a minimal document that reproduces the bug, and attach with the "Create a new attachment" link above. Thanks.
Component: Browser-General → HTMLTables
Summary: Bad: Sth. wrong with !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd" → Sth. wrong with !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"
Try with <img style="display: block;" ...>. this is prolly another example of the inline line-height being created within the td (which is right, I think), but without the image being a block-level element, the content will generate a line. I think.
see bug 22274 and more info in bug 47165 somebody mark this DUP
This is just bug 22274. The XHTML doctype is laid out in standards-compliant layout mode, so you get this behavior, which is consistent with CSS2 and not consistent with 4.x browsers. Good call, Aaron *** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified.
Status: RESOLVED → VERIFIED
housekeeping. summary needs to be descriptive
Summary: Sth. wrong with !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd" → (see 22274) Table cell always font-height high in XHTML 1.0 Strict DTD
You need to log in before you can comment on or make changes to this bug.