New issue
Advanced search Search tips

Issue 770256 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Extra lines added wrapping mid-unbroken-word with pre-wrap

Reported by jcherwo...@gmail.com, Sep 29 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
1. Restrict the size of text content that includes either single spaces or line-breaks to smaller than a word when using white-space: pre-wrap (word-wrap: normal)

What is the expected behavior?
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.

What went wrong?
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.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 61.0.3163.100  Channel: stable
OS Version: 10.0
Flash Version: 

This does not affect Firefox or Edge. It does affect Safari/WebKit, but may have pre-dated Blink. Also exists in Canary.
 
extra-linebreaks.html
209 bytes View Download

Comment 1 by e...@chromium.org, Sep 30 2017

Owner: kojii@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 2 by kojii@chromium.org, Oct 4 2017

Status: WontFix (was: Assigned)
Thank you for reporting this problem to us. Confirmed in Canary, and confirmed this was fixed when LayoutNG runtime flag is enabled.

Given this is fixed in LayoutNG and we expect the switch isn't too far, I'm not planning to work on this for now. But if anyone wants to work on, or have reasons to raise the priority, I'd be happy to hear/advice/review.

Sign in to add a comment