Closed Bug 413982 Opened 13 years ago Closed 13 years ago

Incorrect text wrapping in floating element containing span with nowrap

Categories

(Core :: Layout: Floats, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timwi, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Build Identifier: 

Please view the attached minimal testcase.

Reproducible: Always

Steps to Reproduce:
1. Open the attached testcase.
Actual Results:  
The text in the span gets wrapped to a new line (independent of the window width).

Expected Results:  
The text in the span should not get wrapped to a new line (unless it doesn't fit in the width of the window).

* If you remove the white-space:nowrap property on the span, the bug disappears.
* If you remove the whitespace before the </span> tag in the source, the bug disappears.
* If you remove the other (non-floating) div, the bug disappears.
* If you remove the clear:both property on the non-floating div, the bug disappears.

* If you change float:right to float:left, the bug remains.
Attached file Testcase
Testcase.
WFM, Firefox 2008012504 Linux.

Timwi, please try the latest beta:
http://www.mozilla.com/firefox/all-beta.html

or the latest nightly trunk build:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
WFM
Seamonkey 2.0a1pre rv: 1.9b3pre build 2008012501 under XP Pro SP2.

This is a bug the rv:1.8.x branch, not on the trunk.
Attached patch reftest.diffSplinter Review
Added a reftest:
mozilla/layout/reftests/bugs/413982.html 	1.1
mozilla/layout/reftests/bugs/413982-ref.html 	1.1
mozilla/layout/reftests/bugs/reftest.list 	1.349 

This bug was fixed by the reflow-refactor bug 300030.

-> FIXED
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Keywords: testcase
OS: Windows 2000 → All
Hardware: PC → All
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.