Closed
Bug 297034
Opened 20 years ago
Closed 18 years ago
Incorrect alignment of image in table with align="right" nowrap="nowrap"
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: marklassau, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511
The following HTML will be displayed incorrectly in Mozilla 1.7.8:
<td align="right" nowrap="nowrap"> <img src="test.gif"> </td>
Note that it ONLY occurs if you have the align="right", nowrap, AND the space
between the <img> tag and </td> tag.
Reproducible: Always
Steps to Reproduce:
1. Display a page with the given HTML snippet
Actual Results:
The image is shifted to the right by some pixels, so that it goes past the end
of the table.
Expected Results:
The imageg should be contained within the table.
Try this test page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>align="right" nowrap Test</title>
</head>
<body>
<br>
<table border="1">
<tbody>
<tr>
<td align="right" nowrap="nowrap"><img src="test.gif"></td>
</tr>
</tbody>
</table>
<br>
<table border="1">
<tbody>
<tr>
<td align="right" nowrap="nowrap"> <img src="test.gif"> </td>
</tr>
</tbody>
</table>
<br>
<table border="1">
<tbody>
<tr>
<td align="right"><img src="test.gif"></td>
</tr>
</tbody>
</table>
<br>
<table border="1">
<tbody>
<tr>
<td align="right"> <img src="test.gif"> </td>
</tr>
</tbody>
</table>
</body>
</html>
Reporter | ||
Comment 1•20 years ago
|
||
Added test page to http://www.lassau.net/test/table-align.html
![]() |
||
Comment 2•20 years ago
|
||
Probably needed as some sort of IE-compat quirk.... Note that you're testing in
quirks mode.
Assignee: general → nobody
Component: General → Layout: Tables
Product: Mozilla Application Suite → Core
QA Contact: general → layout.tables
Version: unspecified → 1.0 Branch
![]() |
||
Updated•20 years ago
|
Version: 1.0 Branch → Trunk
Comment 3•20 years ago
|
||
It's broken in standards compliance mode, too and you don't need an image. Any
simple inline element writes over the border. I think I've seen this bug before
but I can't find the bug #.
Comment 5•20 years ago
|
||
The bug is not restricted to tables, it can be reproduced with other
shrink-wrap containers. Duplicate of bug 243711, it seems.
WFM
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20061222 Minefield/3.0a2pre
(Reflow branch landing?)
![]() |
||
Comment 7•18 years ago
|
||
Yeah, this is WFM. Even without a reflow branch build.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 8•17 years ago
|
||
Bug exists in v2, and is fixed in v3
Resolution: WORKSFORME → FIXED
![]() |
||
Comment 9•17 years ago
|
||
Yes, but we don't know what fixed it, hence the resolution.
Resolution: FIXED → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•