[Webkit-unassigned] [Bug 56269] New: Markup interferes with soft hyphen line-breaking

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 13 13:36:18 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=56269

           Summary: Markup interferes with soft hyphen line-breaking
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: drpizza at quiscalusmexicanus.org


Created an attachment (id=85620)
 --> (https://bugs.webkit.org/attachment.cgi?id=85620&action=review)
Demonstration

If a soft hyphen is the last character in an element, it seems that is no longer considered to be a line-breaking opportunity. The linked demonstration should permit breaks between "break" and "me", but it appears that the soft hyphen gets suppressed because the line break should occur between two spans, rather than internal to one of them.

Given that WebKit does, in other circumstances, regard the soft hyphen as a line-breaking opportunity, I feel it should do so in this case too (though from what I can tell, the behaviour of hyphenation is not usefully defined, so perhaps this is an "enhancement" rather than a bug). Hyphenation should surely be driven by the "textual" content of a document, and not the logical (DOM) structure; that there are intervening span tags should not preclude the insertion of a line-break and visible hyphen in this case.

Firefox 4RC and Internet Explorer 9 RTM both disagree with WebKit's interpretation and both allow line-breaking at the soft hyphens. Opera 11.01 is consistent with WebKit.

Safari 5.0.4, Chrome 11.0.696.3 dev, on 64-bit Windows 7 with Service Pack 1, and Safari 5.0.4 on Mac OS X 10.6.6, all demonstrate the failure to line-break.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list