Closed Bug 322058 Opened 19 years ago Closed 19 years ago

Text containing nonwrappable segments do not wrap correctly (see details)

Categories

(Firefox :: General, defect)

1.5.0.x Branch
x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 278891

People

(Reporter: kahahn, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

Example:

<p>lots of wrappable text and more text and more text etc
<tt style="white-space:nowrap">this is nonwrappable text</tt>
and now wrappable text continues.</p>

If the nonwrappable text occurs at the end of the line, it continues out of frame. If it won't fit, the entire nonwrappable fragment should instead appear on the next line.

In the sample URL, you can find examples in the inline equations. Go to the paragraph that begins, "So the difference between the two". Then drag and adjust the right-hand edge of your frame until one of the nonwrappable equation segments runs off the right-hand margin. You will see the problem.

Note that IE does not have this problem. If the nonwrappable fragment will not fit, in IE, it is moved to the next line.

Reproducible: Always

Steps to Reproduce:
1. Go to URL indicated and find paragraph starting with "So the difference between the two"
2. Drag and adjust right-hand frame-edge until one of the inline equation segments runs off the right-hand margin.
3.

Actual Results:  
Nonwrappable inline equation segment runs out-of-frame to the right.

Expected Results:  
Nonwrappable inline equation segment should appear on next line if it won't fit on current line. It does not behave this way.
Version: unspecified → 1.5 Branch
This is the same as Bug 278891 (removing the "&nbsp;"s before and after the <tt>s fixes the problem). Also, the example in in comment #0 works correctly.

*** This bug has been marked as a duplicate of 278891 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.