[Webkit-unassigned] [Bug 177670] New: Extra lines added wrapping mid-unbroken-word with pre-wrap

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 29 10:33:56 PDT 2017


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

            Bug ID: 177670
           Summary: Extra lines added wrapping mid-unbroken-word with
                    pre-wrap
           Product: WebKit
           Version: Safari 11
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jamiec at dundas.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 322194

  --> https://bugs.webkit.org/attachment.cgi?id=322194&action=review

HTML to reproduce

Extra line-breaks are added when restricting the size of text content that includes either single spaces or line-breaks to smaller than a word and using white-space: pre-wrap (word-wrap: normal)

 - Wrapping at the end of the word introduces a line-break if there already was one, producing a new completely empty line.

 - Two consecutive words that don't fit separated by a single space results in three lines of text, including one line just for the space.

Existing line-breaks should be used or replaced instead of new ones added at the same position. Wrapping words separated only by spaces should not introduce empty lines containing only white-space.

This also affects Chrome but not Firefox or Edge.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170929/3119409e/attachment.html>


More information about the webkit-unassigned mailing list