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)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: marklassau, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

191 bytes, text/html; charset=utf-8
Details
252 bytes, text/html; charset=utf-8
Details
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>
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
Version: 1.0 Branch → Trunk
Attached file testcase
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 #.
Yeah, that looks wrong...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Attached file another testcase
The bug is not restricted to tables, it can be reproduced with other
shrink-wrap containers. Duplicate of bug 243711, it seems.
Depends on: 243711
WFM
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20061222 Minefield/3.0a2pre
(Reflow branch landing?)
Yeah, this is WFM.  Even without a reflow branch build.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Bug exists in v2, and is fixed in v3
Resolution: WORKSFORME → FIXED
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.

Attachment

General

Creator:
Created:
Updated:
Size: