Closed Bug 497344 Opened 15 years ago Closed 7 years ago

The "Subject" is wrapping the last word to a new line on the Yahoo! Finance Message Board

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1242781

People

(Reporter: bkwrdsk, Unassigned)

References

()

Details

(Keywords: regression, Whiteboard: [platform-rel-Yahoo!])

Attachments

(4 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b99) Gecko/20090605 Firefox/3.5b99 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b99) Gecko/20090605 Firefox/3.5b99 (.NET CLR 3.5.30729)

For some reason the last word of the "Subject" is wrapped to a new line.

This occurs when viewing the Message Board for a stock in "List as Individual Messages" mode but not in "List in Topics" mode.

This causes each message to take two lines instead of one.

Reproducible: Always

Steps to Reproduce:
1.  Go to http://finance.yahoo.com/
2.  Under the "Home" tab, enter a ticker symbol (QQQQ) and press the "Get Quotes" button.
3.  Once the quote page is displayed, click the "Message Board" link in the left-side navigation to display the Message Board.
4.  When the Message Board is displayed it should be in "List in Topics" mode.
5.  Click the "List as Individual Messages" link.
6.  The message board is now displayed in "List as Individual Messages" mode.
7.  Notice that the last word of every "Subject" line is wrapped to a new line even if it will fit on one line.
Actual Results:  
The last word of every "Subject" line is wrapped to a new line even if it will fit on one line.

Expected Results:  
The Subject should occupy a single line and the last word should not wrap.

The display was correct in Firefox 2, however I noticed the problem started happening in Firefox 3.0 and is still happening in the 3.5beta.
Internet Explorer 6 and 7 display properly.  I haven't tested in Safari, Opera, Chrome, or any other browsers.
Reporter, are you still seeing this issue with Firefox 3.6.11 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2010-11-15]
(In reply to comment #2)
> Reporter, are you still seeing this issue with Firefox 3.6.11 or later in safe
> mode? If not, please close. These links can help you in your testing.
> http://support.mozilla.com/kb/Safe+Mode
> http://support.mozilla.com/kb/Managing+profiles

Yes.  The problem is still happening in Firefox 3.6.11.  I tested in safe mode.

Here's a test link

http://messages.finance.yahoo.com/ETFs_%28A_to_Z%29/ETFs_P/messagesview?bn=110798

I'm also attaching a screen capture (firefox-wrapping-in-yahoo.jpg) with Firefox on top and Chrome on the bottom.  Notice the first "Subject" is "RE: YOU CAN beat the machine.  How?"  If Firefox, the word "How?" wraps to a second line while Chrome doesn't wrap it.

Note that the content at the link will be different than the content in my screen capture.

Thanks
No reply, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
(In reply to comment #5)
> No reply, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new
> profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to
> see this issue with the newest firefox and a new profile, then please comment
> on this bug.

Yes.   The problem still exists with Firefox 3.6.12 with a new profile.
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Whiteboard: [CLOSEME 2010-11-15]
Version: unspecified → 3.6 Branch
Reporter -> Are you still experiencing this issue with the latest version of Firefox 5? Does the issue occur with the latest nightly? http://nightly.mozilla.org/
Yes.  The problem still exists with Firefox 5.0.
I'm attaching a new screenshot showing the difference between Firefox and Chrome.  Chrome is not wrapping the last word.
Thanks.
Firefox 5.0 still wrapping the last word in the Subject to a new line.  Other browsers, including Chrome, IE, and Safari display properly and do not wrap the last word.
I am not able to reproduce the issue. It displays correctly for me in 3.6.18 and Mozilla/5.0 (Windows NT 5.1; rv:7.0a1) Gecko/20110625 Firefox/7.0a1 ID:20110625030743

Does the issue still occur with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic+Troubleshooting#Make_a_new_profile
Version: 3.6 Branch → 5 Branch
Yes.  I confirmed on a different machine with a fresh install of Firefox 5.0.  Wiped out all profiles.

Make sure you are on the "List as Individual Messages" view, NOT the "List in Topics" view.

Try this link.

http://messages.finance.yahoo.com/Stocks_%28A_to_Z%29/Stocks_A/messagesview?bn=60

Then compare to Chrome.
Please add a screen capture attachment so I can see what you are getting.  Then I can describe the problem to you.
Thanks
I do see the issue now...

Relevant HTML code:
	<span style="clear: none; float: left; margin: 0px; padding: 0px 2px;">
	    <a class="syslink" href="http://messages.finance.yahoo.com/Stocks_%28A_to_Z%29/Stocks_A/threadview?m=tm&amp;bn=60&amp;tid=3329992&amp;mid=3330000&amp;tof=1&amp;frt=2" title="Re: )) SHORTED 298,000 SHARES LAST WEEK ((">
	    <span class="user-href">Re: )) SHORTED 298,000 SHARES LAST WEEK ((</span></a>
	    <span class="user-data"><br></span>
	    <span class="system-user"></span>
        </span>

If I remove the style from the span (Change <span style="clear: none; float: left; margin: 0px; padding: 0px 2px;"> to <span style="">) the issue is resolved.

This looks like it might be a TE bug.
Version: 5 Branch → Trunk
Whiteboard: TE?
Tim: 
Can you compare with other browsers ?
(I hope that they get the same code)
Still an issue with latest nightly - Mozilla/5.0 (Windows NT 5.1; rv:9.0a1) Gecko/20110818 Firefox/9.0a1 ID:20110818030747

No wrap in Chrome
No wrap in Safari
No wrap in IE9
No wrap in Opera 11

All on Win XP

Also an issue on SeaMonkey - so kicking to Core
Product: Firefox → Core
QA Contact: general → general
Version: Trunk → 9 Branch
This bug could really use a minimalish testcase... at first glance, the table cell is just ending up not wide enough for the text, but it's hard to tell why given all the markup on the page...
Cut it down a ton, including all style sheets
Attached file Further reduced
Tim, thank you!  That was a _lot_ easier to work with than the original page.
The obvious issue here is that the div ends up just a tiny bit too narrow for its content.

Furthermore, the problem goes away in quirks mode, so it has to do with the standards-mode weirdness with <br> reporting a 1-appunit width from Reflow(), unsurprisingly.  Note that the intrinsic width stuff on <br> does NOT report that 1-appunit bit.

The question is why the <span> around the <br> matters...

This presumably regressed with the reflow branch, given the regression appeared first in Firefox 3.
Status: UNCONFIRMED → NEW
Component: General → Layout: Block and Inline
Ever confirmed: true
QA Contact: general → layout.block-and-inline
Whiteboard: TE?
Also of interest is why the last word wraps.  I can understand why the <span> with the br in it wraps: it's not fitting on the line, since the <span> has a 1-appunit width due to the <br>.  But the block width is certainly sufficient for the text.  And if I replace the text with a sequence of inline-blocks, the last inline-block does NOT wrap (and it doesn't matter whether I have spaces between them, etc, etc).

In fact, even if I just wrap an inline-block around the last word of the text the wrapping doesn't happen, which suggests that somehow the <span><br></span> is being treated as part of the last word, even though there is a space before it.  Or something.

roc, David, Mats, any idea what nsLineLayout is doing here?
This bug can be closed.  Yahoo has redesigned their finance message board so this bug is no longer relevant.
That may be, but (given comment 19 & comment 20) it sounds like there's still a bug, which we have a reduced testcase for.

So, worth leaving open to track that issue (though it's still good to know that it's no longer breaking Yahoo's layout).
User Agent 	Mozilla/5.0 (Windows NT 5.1; rv:49.0) Gecko/20100101 Firefox/49.0
Build ID 	20160519030232

This is still reproducible on latest Nightly (49.0a1). I've tested with the reduced testcase provided in comment 18.
Version: 9 Branch → Trunk
platform-rel: --- → ?
Whiteboard: [platform-rel-Yahoo!]
platform-rel: ? → ---
This is fixed in Nightly. "mozregression --find-fix" tells me it was fixed by bug 1242781 (which makes sense, since the reduced testcase here has a <br> and unexpected wrapping, which is what bug 1242781 is also about)
Status: NEW → RESOLVED
Closed: 14 years ago7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: