Closed
Bug 155651
Opened 23 years ago
Closed 22 years ago
bad interpretation of <td> code with CSS
Categories
(Core :: Layout: Tables, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: dobiasr, Assigned: karnaze)
Details
(Keywords: testcase)
Attachments
(3 files)
I have Mozilla build id 2002070308, but it no diferent with mozilla 1.0.0
Linux RedHat 7.3, KDE, ...
2 no much different html code. diferent are only "white chars" after <img >.
<td class="banner" >
<img src="http://www.mozilla.org/images/mozilla-banner.gif" border="0" alt="" ></td>
and
<td class="banner" >
<img src="http://www.mozilla.org/images/mozilla-banner.gif" border="0" alt="" >
</td>
and under picture is line with bg-color.
look to
http://h4-bar.dorf.rwth-aachen.de:8080/bug1.html
http://h4-bar.dorf.rwth-aachen.de:8080/bug2.html
only if im not sleeping :-))
---------------file bug1.html -------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
<style type="text/css"><!--
.banner { background-color: red; color: black; }
--></style>
<title>bug1</title>
</head>
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td class="banner" >
<img src="http://www.mozilla.org/images/mozilla-banner.gif" border="0"
alt="" >
</td>
</tr>
</tbody>
</table>
<br>
</body>
</html>
Comment 1•23 years ago
|
||
I believe that whitespace is in fact significant here; it affects the line-height...
I think we should actually (for strict mode) be doing what we do if whitespace
is present even if there is no whitespace. Ian?
| Reporter | ||
Comment 3•23 years ago
|
||
Now i try it in mozilla build 2002061104 on win98 and for both example make it
the same mistake.
I can´t reliance on mozilla, it can't equally dispaly the same page on win and
on linux!!!
Severity: minor → normal
OS: Linux → All
| Reporter | ||
Comment 4•23 years ago
|
||
in win is it absolutly no dependent on "whitespace".
http://h4-bar.dorf.rwth-aachen.de:8080/bug3.html
there is no whitespace in <body> tag
--------------
ok i try make my page in HTML 4.01 Strict :-)
Comment 5•23 years ago
|
||
Yeah, <foo><img/></foo> and <foo> <img/> </foo> should be identical,
vertically speaking.
| Reporter | ||
Comment 6•23 years ago
|
||
Updated•23 years ago
|
Priority: -- → P3
Comment 7•23 years ago
|
||
The testcases are now using the quirks inline box model, since they are in
almost-standards mode...Radek, do you mind changing the doctype to a strict one?
Comment 8•22 years ago
|
||
in strict mode, you can see the background color of the table cell (yellow)
after the bottom of the image.
I notice that it does not matter whether the code is written as
<td><img></td>
or
<td>
<img>
</td>
or
<td> <img> </td>
i all the scenarios, the table cell height looks greater than the img height.
Comment 10•22 years ago
|
||
Comment 11•22 years ago
|
||
surely ... does show the behaviour of bug 22274.
And I must add here that bug 22274 has over 130 bugs duped against it. That is a
huge number.
will this bug be another of it's duplicated assignees or will it stay open for
some consideration.
QA Contact: amar → madhur
Comment 12•22 years ago
|
||
I dont see with the testcase any red color below the image in quirks mode.
wfm winxp 2004020208
Comment 13•22 years ago
|
||
I close this bug as wfm. If somebody sees it with the attached testcase (
attachment 140606 [details] ) please create a screenshot and reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•