Bug 289182

Summary: soft hyphen in webkit does not break the line, instead causes content to overlap
Product: [Unmaintained] kdelibs Reporter: Andreas Nordal <andreas_nordal_4>
Component: kdewebkitAssignee: webkit-devel
Status: RESOLVED UPSTREAM    
Severity: normal CC: adawit
Priority: NOR    
Version: 4.9-Git   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andreas Nordal 2011-12-17 11:28:02 UTC
Version:           1.2.0 (using KDE 4.7.2) 
OS:                Linux

Using either Konqueror with webkit, Rekonq or Arora, this html is not displayed correctly when the browser window is narrow:

 <table border="1">
 <tr>
 <td>aaaaaaaaaaaaaa&shy;bbbbbbbbbbbbbb</td>
 <td>something</td>
 </tr>
 </table>

Reproducible: Always

Steps to Reproduce:
Put the above html code into a html file.
Open it with a browser using webkit.
Narrow the browser window until you would expect the line in the left table cell to break (at the soft hyphen).

Actual Results:  
The line with soft hyphen is not broken. Webkit apparently thinks it has broken the line, causing the "bbbbbbbbbbbbbb" after the soft hyphen to overlap with the "something" to the right.

Expected Results:  
The soft hyphen should appear as a hyphen at the end of the "aaaaaaaaaaaaaa", and "bbbbbbbbbbbbbb" should move to the next line.

Using the unicode character for soft hyphen (rather than the html entity as in this test case) does not seem to make any difference. I would like both to work before closing the bug.

Konqueror works fine with KHTML.
Comment 1 Dawit Alemayehu 2011-12-20 14:56:59 UTC
I can reproduce this, but this is an upstream QtWebKit issue since it can be duplicated with Arora as well as QtTestBrowser. You need to open a ticket upstream. See http://trac.webkit.org/wiki/QtWebKitBugs.
Comment 2 Andreas Nordal 2012-01-24 21:01:09 UTC
Submitted upstream, as suggested:
https://bugs.webkit.org/show_bug.cgi?id=76932