Bug 21677 - 'content-ads' word is wrapping into two lines under 'Learn about AdSense' section in homepage
Summary: 'content-ads' word is wrapping into two lines under 'Learn about AdSense' sec...
Status: RESOLVED DUPLICATE of bug 242822
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: https://www.google.com/adsense/login/...
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2008-10-16 15:04 PDT by jasneet
Modified: 2022-09-07 21:59 PDT (History)
8 users (show)

See Also:


Attachments
reduced testcase (1.28 KB, text/html)
2008-10-16 15:06 PDT, jasneet
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasneet 2008-10-16 15:04:35 PDT
I Steps:
Go to https://www.google.com/adsense/login/en_US/

II Issue:
"content-ads" word is wrapping into two lines in 'Learn about AdSense' section

III Conclusion:
When breaking line, FF wraps the whole compound word to next line, while webkit breaks the compound word, displays the hyphen and subsequence in next line.

IV Other Browsers:
IE7: not ok
FF3: ok

V Nightly tested: 37604
Comment 1 jasneet 2008-10-16 15:06:03 PDT
Created attachment 24430 [details]
reduced testcase
Comment 2 Mark Rowe (bdash) 2008-10-16 20:31:49 PDT
I believe that it is an em-dash, not a hyphen.
Comment 3 Ahmad Saleem 2022-08-29 04:36:13 PDT
I am able to reproduce this bug in Safari Technology Preview 152 and the text box seems to be "justified" like similar to Microsoft Word rather than left side in other browsers (Chrome Canary 107 and Firefox Nightly 106). As a result "content-ads" word is slipping between two lines for Safari while in third line for other browsers.

Just wanted to change status to "New" and share updated test results. Thanks!
Comment 4 Alexey Proskuryakov 2022-08-29 08:59:18 PDT
1. Our line breaking behavior matches Chrome - both have line break opportunities before and after the em dash. So why is the test case rendered differently than in Chrome? It is not actually justified, that's a coincidence.

2. Firefox only has a line break opportunity after the em dash, not before it. That's bug 242822.

To be clear, the Google webpage has been redesigned since 2008, and is not affected any more.
Comment 5 Myles C. Maxfield 2022-09-07 21:59:55 PDT

*** This bug has been marked as a duplicate of bug 242822 ***