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.
Created attachment 398952 [details] The spaces go away after I select the text
<rdar://problem/63153074>
The font doesn't support the space character, so we're falling back to LucidaGrande for that character.
I'm looking at this bug now.
Disabling simple line layout fixes this.
Created attachment 404919 [details] Test reduction
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.
I already have a patch on this (see bug 211680) *** This bug has been marked as a duplicate of bug 211680 ***