Closed Bug 155651 Opened 23 years ago Closed 22 years ago

bad interpretation of <td> code with CSS

Categories

(Core :: Layout: Tables, defect, P3)

x86
All
defect

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>
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?
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
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 :-)
Yeah, <foo><img/></foo> and <foo> <img/> </foo> should be identical, vertically speaking.
Priority: -- → P3
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?
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.
dup of bug 136369 ? also related to bug 161691
Keywords: testcase
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
Attached file quirks testcase
I dont see with the testcase any red color below the image in quirks mode. wfm winxp 2004020208
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.

Attachment

General

Creator:
Created:
Updated:
Size: