Bug 211679

Summary: Large spaces appear between words until the text is selected
Product: WebKit Reporter: Saagar Jha <saagar>
Component: TextAssignee: alan <zalan>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: jmuizelaar, mmaxfield, paul, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: macOS 10.15   
Attachments:
Description Flags
The website before I select any text, with the undesired spaces
none
The spaces go away after I select the text
none
Test reduction none

Saagar Jha
Reported 2020-05-09 18:34:55 PDT
Created attachment 398951 [details] The website before I select any text, with the undesired spaces On some websites, like this one: https://vistaserv.net/blog/90s-fonts-modern-browsers, WebKit puts some large spaces in the middle of a paragraph. If I select the text the spaces go away and WebKit lays it out like it should be.
Attachments
The website before I select any text, with the undesired spaces (792.07 KB, image/png)
2020-05-09 18:34 PDT, Saagar Jha
no flags
The spaces go away after I select the text (793.52 KB, image/png)
2020-05-09 18:36 PDT, Saagar Jha
no flags
Test reduction (580 bytes, text/html)
2020-07-22 06:35 PDT, alan
no flags
Saagar Jha
Comment 1 2020-05-09 18:36:16 PDT
Created attachment 398952 [details] The spaces go away after I select the text
Radar WebKit Bug Importer
Comment 2 2020-05-12 14:06:45 PDT
Myles C. Maxfield
Comment 3 2020-07-21 22:27:39 PDT
The font doesn't support the space character, so we're falling back to LucidaGrande for that character.
Myles C. Maxfield
Comment 4 2020-07-21 22:28:13 PDT
I'm looking at this bug now.
Myles C. Maxfield
Comment 5 2020-07-21 23:32:58 PDT
Disabling simple line layout fixes this.
alan
Comment 6 2020-07-22 06:35:37 PDT
Created attachment 404919 [details] Test reduction
alan
Comment 7 2020-07-22 06:39:54 PDT
I haven't looked at the code yet, but the test reduction makes me think it is a collapsed whitespace width caching issue in the fast codepath.
alan
Comment 8 2020-07-22 19:17:38 PDT
I already have a patch on this (see bug 211680) *** This bug has been marked as a duplicate of bug 211680 ***
Note You need to log in before you can comment on or make changes to this bug.