Closed
Bug 235052
Opened 22 years ago
Closed 22 years ago
table row padding is too large in HTML 4.01 strict rendering
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 235029
People
(Reporter: roy, Assigned: bugzilla)
Details
Attachments
(2 files)
User-Agent:
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
When using the following HTML code and identifying the HTML version as 4.01
strict, the height of the table row is larger than it should be. When
identifying the HTML version as 4.01 transitional, or 3.2, the table row height
is correct.
The size of the of image, "blue_lg.gif" is 120x120 pixels. When the HTML
version is identified as 4.01 strict, there is a padding of 6 pixels on below
the image. When the image blue_sm (12x12 pixels) is used, the top padding is 4
pixels and the bottom padding is 6 pixels.
When the HTML version is identified 4.01 transitional or 3.2, the top and bottom
table row padding of both images is 1 pixel.
The only difference in testing this was the change in the DTD version
information. The HTML was validated as either 4.01 strict or 4.01 transitional
at http://validator.w3.org/.
---------
<!-- DTD for version 4.01 strict -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
---------
<!-- DTD for version 4.01 transitional -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
---------
<HTML>
<HEAD>
<TITLE>""</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css"> tr {background-color:#ff0000}</STYLE>
</HEAD>
<body>
<table width="100%">
<tr class="hdsep"><td ><img src='blue_lg.gif' alt=""></td></tr>
</table>
<P>This is the Body
</BODY>
</HTML>
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
Table row padding is not 1 pixel top and bottom.
Expected Results:
Table row padding is 1 pixel top and bottom.
Both Firefox and Firebird exhibit this behavor. IE works as expected.
| Reporter | ||
Comment 1•22 years ago
|
||
| Reporter | ||
Comment 2•22 years ago
|
||
Comment 3•22 years ago
|
||
This is as it should be. Read
http://devedge.netscape.com/viewsource/2002/img-table/ for why and what to do
about it.
*** This bug has been marked as a duplicate of 235029 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•