Bug 211679 - Large spaces appear between words until the text is selected
Summary: Large spaces appear between words until the text is selected
Status: RESOLVED DUPLICATE of bug 211680
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-05-09 18:34 PDT by Saagar Jha
Modified: 2020-07-22 19:17 PDT (History)
4 users (show)

See Also:


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 Details
The spaces go away after I select the text (793.52 KB, image/png)
2020-05-09 18:36 PDT, Saagar Jha
no flags Details
Test reduction (580 bytes, text/html)
2020-07-22 06:35 PDT, zalan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Saagar Jha 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.
Comment 1 Saagar Jha 2020-05-09 18:36:16 PDT
Created attachment 398952 [details]
The spaces go away after I select the text
Comment 2 Radar WebKit Bug Importer 2020-05-12 14:06:45 PDT
<rdar://problem/63153074>
Comment 3 Myles C. Maxfield 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.
Comment 4 Myles C. Maxfield 2020-07-21 22:28:13 PDT
I'm looking at this bug now.
Comment 5 Myles C. Maxfield 2020-07-21 23:32:58 PDT
Disabling simple line layout fixes this.
Comment 6 zalan 2020-07-22 06:35:37 PDT
Created attachment 404919 [details]
Test reduction
Comment 7 zalan 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.
Comment 8 zalan 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 ***