Bug 56018 - Soft hyphen can cause unnecessary line wrap
Summary: Soft hyphen can cause unnecessary line wrap
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 08:22 PST by David Sosby
Modified: 2011-03-09 10:34 PST (History)
2 users (show)

See Also:


Attachments
Demonstration of issue (672 bytes, text/html)
2011-03-09 08:22 PST, David Sosby
no flags Details
Screenshot of the issue (28.37 KB, image/png)
2011-03-09 09:24 PST, David Sosby
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Sosby 2011-03-09 08:22:02 PST
Created attachment 85180 [details]
Demonstration of issue

Sometimes when a line break occurs on a soft hyphen, the next line is broken after the first word producing 3 lines when there should only be 2. This was seen while testing Bug 56017.

This behavior has been observed on Chrome 9.0.597.107 534.13 (Windows and Ubuntu10.10), WebKitGTK 534.21+, and Windows Safari 5.0.3 (7533.19.4). 

Demonstration of issue attached.
Comment 1 mitz 2011-03-09 08:35:25 PST
Can you attach a screenshot? I don’t seem to be able to reproduce the bug as described.
Comment 2 David Sosby 2011-03-09 09:24:19 PST
Created attachment 85184 [details]
Screenshot of the issue

Note that the hyphen appears in this screenshot as I have a proposed patch for bug 56017 installed. Without this fix the hyphen would not be displayed though the line breaks still occur as seen.
Comment 3 David Sosby 2011-03-09 09:25:33 PST
This issue was seen w/o the proposed 56017 fix as well.
Comment 4 mitz 2011-03-09 10:25:48 PST
Which is the unexpected line break? I see three, all accounted for: after “anti”, a soft line break at the soft hyphen; after “aliasing”, a hard line break due to the <br> element; after “new”, a soft line break at a space.
Comment 5 David Sosby 2011-03-09 10:31:19 PST
(In reply to comment #4)
> Which is the unexpected line break? I see three, all accounted for: after “anti”, a soft line break at the soft hyphen; after “aliasing”, a hard line break due to the <br> element; after “new”, a soft line break at a space.

Agreed, this is not a bug. Mistake on my part and should be closed.