Closed Bug 159234 Opened 23 years ago Closed 20 years ago

Table with STYLE="border-width:..." does not display correctly

Categories

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

x86
Windows 2000
defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: jason, Unassigned)

References

()

Details

In Mozilla 1.0, the web page listed above displayed correctly, but 1.1 beta displays it incorrectly. The row across the top is composed of three cells, with borders specified by CSS. The row should only be as big as the images in the cells (which are specified to be the same size) and is in 1.0, but, in 1.1 beta, there is a red line (the background color of the table) between the graphic and the border. It is valid HTML and CSS (according to w3.org)
Sounds like the wrong inline box model is being applied here?
bz: Did you check which mode the page was in (in View Page Info)? It ought to be quirks. (Just because the page is valid HTML and CSS doesn't mean it should display the way you think it should. It only means that we shouldn't give an error message. :-)
Yeah, I checked and it's quirks....
For what it's worth, here's what I found. For some reason, Mozilla > 1.0 would interpret the carriage return at the end of the IMG tag as something to be displayed: <table cellpadding=0 cellspacing=0 WIDTH="100%" CLASS="mastertable" BGCOLOR="990033" STYLE="border-width: 5px 5px 5px 5px; border-style: solid; border-color: #000066;"> <tr> <td COLSPAN="5"> <img SRC="/logo.jpg" HEIGHT="70" WIDTH="100%" ALT=""> </td> </tr> </TABLE> would produce the red line at the bottom, where <table cellpadding=0 cellspacing=0 WIDTH="100%" CLASS="mastertable" BGCOLOR="990033" STYLE="border-width: 5px 5px 5px 5px; border-style: solid; border-color: #000066;"> <tr> <td COLSPAN="5"><img SRC="/logo.jpg" HEIGHT="70" WIDTH="100%" ALT=""></td> </tr> </TABLE> would not. All I did was put the entire <TD>...</TD> markup on one line, and the problem was solved. In this instance, it doesn't matter because it's all fairly short, but, for more complex cells, that could make for hard to maintain markup. Am I mistaken in thinking the the CR should be ignored?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P4
Target Milestone: --- → Future
mass reassign to default owner
Assignee: karnaze → table
QA Contact: amar → madhur
Target Milestone: Future → ---
Target Milestone: --- → Future
the url is wfm winxp2004090507
The URL looks fine to me with Mozilla 1.8b2 build 2005050305 under XP Pro SP2; no table layout problem as described (no red line between graphics and border in top row). I suspect the page code was changed with page redesign. The bug has been inactive for a long time and Bernd commented that the url was WFM. For all these reasons: Resolving as WORKSFORME
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.