Closed
Bug 20575
Opened 26 years ago
Closed 24 years ago
Cell height is not correct in HTML 4.0 Strict//EN
Categories
(Core :: Layout, defect, P3)
Tracking
()
M15
People
(Reporter: horwath, Assigned: buster)
References
Details
Attachments
(2 files)
when i create such file :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<title>Cell height in HTML 4.0 Strict</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Cell height should be 5px, but it isn´t.
<table border=1>
<tr>
<td><img src="http://www.mozilla.org/images/mozilla-banner.gif"
height="5"></td>
</td>
</table>
</body>
</html>
the cell height should have exactly the same size as the image.
same problem with
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
but the nice thing is the cell height is correct with this DOCTYPE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
i include 2 testcase with this bug report.
i noticed the problem on win95, 98 and on nt.
Updated•26 years ago
|
Assignee: karnaze → kipp
Comment 3•26 years ago
|
||
The cell's block frame which contains the image is reporting a desired height of
285 twips (15 twips = 1 pixel on my machine) and it should be reporting 75 as it
does for max element height. Reassigning to Kipp.
TR::Rfl en 00D3E744 rea=0 av=(UC,UC) comp=(UC,UC)
TC::Rfl 00D3E78C rea=0 av=(UC,UC) comp=(UC,UC)
Area::Rfl en 00D3E7EC rea=0 av=(UC,UC) comp=(UC,UC)
Area::Rfl ex 00D3E7EC des=(776,285) maxElem=(776,75)
TC::Rfl ex 00D3E78C des=(836,345) maxElem=(836,135)
TR::Rfl ex 00D3E744 des=(896,405) maxElem=(836,135)
moving kipp's bugs to M15. Some will get moved again, this is just a start.
Updated•26 years ago
|
mine! mine mine mine! all mine! whoo-hoo!
Assignee: kipp → buster
This is not a bug. The line-height for the TD element acts as the minimum
line-box height for all of the line boxes within that block, so extra space
should be there, according to CSS1/CSS2. See section 10.8 of CSS2:
http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-line-height , first paragraph
in the definition of 'line-height'. (Note that "inline box" should be "line
box".)
(If you want the traditional behavior for images alone in table cells in
CSS1/CSS2, you should give those images 'display: block'.)
Status: NEW → RESOLVED
Closed: 26 years ago
Component: HTMLTables → Layout
Resolution: --- → INVALID
Comment 8•26 years ago
|
||
Works for Me
Platform: PC
OS: Windows 98
Build # 2000100508 M18 Trunk Build
Marking as Verified
Status: RESOLVED → VERIFIED
Comment 10•25 years ago
|
||
*** Bug 78038 has been marked as a duplicate of this bug. ***
Reopening to mark dup of the main bug on this issue.
Status: VERIFIED → REOPENED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 22274 ***
Status: REOPENED → RESOLVED
Closed: 26 years ago → 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•