Closed Bug 299136 Opened 19 years ago Closed 15 years ago

Space after <span style='white-space: nowrap;'> is treated as wrappable

Categories

(Core :: Layout: Text and Fonts, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: timwi, Unassigned)

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 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

As far as I understand, the following code:

<a href='#'>firstword</a><span style='white-space: nowrap;'> secondword</span>

Should produce a link and a word, separated by a space that doesn't wrap. Hence,
the link and the text should always be on the same line.

However, the space does wrap.

Reproducible: Always

Steps to Reproduce:
Forgot to mention: IE does it the way I describe (the space doesn't wrap).
Attached file testcase
testcase exhibits the bugs with linux trunk build 2005062905
The line should not wrap, but is wrapped between sentences.
marking NEW
Status: UNCONFIRMED → NEW
Component: Layout: Block and Inline → Layout: Fonts and Text
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
QA Contact: layout.block-and-inline → layout.fonts-and-text
Whiteboard: DUPEME
Looks correct in FF3.0.5.  Fixed?
Attached patch reftestSplinter Review
Fails in Fx2, but works in Fx3 and trunk.
Attachment #367473 - Flags: superreview?
Attachment #367473 - Flags: review?
Attachment #367473 - Flags: superreview?(dbaron)
Attachment #367473 - Flags: superreview?
Attachment #367473 - Flags: review?(dbaron)
Attachment #367473 - Flags: review?
Comment on attachment 367473 [details] [diff] [review]
reftest

r+sr=dbaron; sorry for the delay (back from travel now)
Attachment #367473 - Flags: superreview?(dbaron)
Attachment #367473 - Flags: superreview+
Attachment #367473 - Flags: review?(dbaron)
Attachment #367473 - Flags: review+
(In reply to comment #6)
> r+sr=dbaron; sorry for the delay (back from travel now)

No problem.

After checkin, this bug can be closed as WFM.
Keywords: checkin-needed
The bug status isn't relevant for the test to land.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Whiteboard: DUPEME
http://hg.mozilla.org/mozilla-central/rev/e48747f75cd4
Flags: in-testsuite? → in-testsuite+
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: