Bug 289182 - soft hyphen in webkit does not break the line, instead causes content to overlap
Summary: soft hyphen in webkit does not break the line, instead causes content to overlap
Status: RESOLVED UPSTREAM
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdewebkit (show other bugs)
Version: 4.9-Git
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: webkit-devel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-17 11:28 UTC by Andreas Nordal
Modified: 2012-01-24 21:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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