Closed Bug 312718 Opened 20 years ago Closed 16 years ago

First line in absolute positioned <div align="right"> aligned incorrectly

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 132561

People

(Reporter: xebra314, Unassigned)

References

()

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 This is rendered incorrectly: <style> .topright { position: absolute; top: 3px; right: 3px; } </style> <div align="right" class="topright"> blah <br>blah2 </div> It should appear as: _____ blah| <-- Right edge of browser window blah2| But it appears as: _____ blah | blah2| Whereby the first line is offset by a &nbsp; for no apparent reason. You can highlight the extra &nbsp;, it is actually there, though it is not indicated in the HTML source. Note that if you change blah <br>blah2 to blah<br> blah2 within the <div>, it is rendered correctly, without the mysterious &nbsp;. Reproducible: Always Steps to Reproduce: Copy this HTML into a blank file. Open it with FireFox: <style> .topright { position: absolute; top: 3px; right: 3px; } </style> <div align="right" class="topright"> blah <br>blah2 </div> Actual Results: _____ blah | <-- Right edge of browser window blah2| Note the erroneous &nbsp; at the end of the first line. Expected Results: _____ blah| <-- Right edge of browser window blah2| Changing blah <br>blah2 to blah<br> blah2 causes everything to render correctly, the mysterious &nbsp; disappears. It's still annoying though.
Attached file testcase comment 0
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b5) Gecko/20051017 Firefox/1.4.1 ID:2005101706 WFM
Probably, you're experiencing bug 132561.
Peter van der Woude: If WFY because you didn't bother to read the bug report. Notice how your source matches the source of the WORKAROUND, which, of course, was designed to NOT EXHIBIT the BUG. Next time, try looking at the source of the ACTUAL BUG, and not the WORKAROUND. Martijn Wargers: The problems appear different to me. None of the test cases in the bug report you linked to exhibit this problem, while the source given in this bug report does quite clearly exhibit this problem. The bug report you linked to is concerned with inappropriate alignment, while this (somewhat inappropriately named) bug report is concerned with the spontaneous generation of a &nbsp; that appears nowhere in the HTML source. To clarify: there is no whitespace between the end of line and the <br>, but FireFox spontaneously generates a &nbsp;.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051016 Firefox/1.6a1 ID:2005101619 Reporter, could you test this in 1.5 beta 2? There's been about a bazillion layout bugs fixed since 1.0. I'm not seeing this in the current builds.
Here is a picture of the bug in action in 1.5 beta 2.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: