Created attachment 370085 [details] Test case to reproduce the issue What steps will reproduce the problem? (1) Load the attached test case What is the expected result? The line is broken after the first space after the word ("XXXX | XX"), assuming such space overflows the line; the rest of the white space sequence should me moved to the next line (expected.png) What happens instead? The line is broken after the last white space character, letting the whole sequence to overflow ("XXXX |XX"); the next word is moved to the beginning of the next line (actual.png)
Created attachment 370086 [details] Actual result
Created attachment 370087 [details] Expected result
This bug only happens when executing the SimpleLineLayout codepath, so WebKitGtk+ and WPE are not affected y this bug.
I noticed that forcing a relayout (by selecting some text and running the web inspector) produces a line breaking like the one described in the expected results (expected.png).
Created attachment 371403 [details] Patch
Created attachment 371480 [details] Patch Some refactoring
Created attachment 371481 [details] Patch Rephrase comments
Comment on attachment 371481 [details] Patch Attachment 371481 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/12393764 New failing tests: http/wpt/service-workers/service-worker-networkprocess-crash.html
Created attachment 371484 [details] Archive of layout-test-results from ews105 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
Fixed by r257562.
(In reply to Diego Pino from comment #10) > Fixed by r257562. Yay. IFC FTW!
I guess this patch should be marked obsolete.