Bug 230309

Summary: Text is misplaced after selection
Product: WebKit Reporter: Tim Guan-tin Chien [:timdream] <timdream>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: bfulgham, gsnedders, kevin_neal, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
misplaced text after selection
none
Textrun before selection none

Description Tim Guan-tin Chien [:timdream] 2021-09-15 09:54:15 PDT
Created attachment 438250 [details]
misplaced text after selection

STR:

1. Go to https://en.wikipedia.org/wiki/Dune_(2021_film)
2. Scroll down to release date
3. Click on the word "September" thrice

Expected:

1. The word "(Venice)" still fits in the same line

Actual:

1. It got dropped to the second line upon selection.


STP Release 131 (Safari 15.0, WebKit 16612.2.2), macOS 11.5.2 (20G95), 2x dppx screen
Comment 1 Tim Guan-tin Chien [:timdream] 2021-09-15 09:54:57 PDT
Created attachment 438251 [details]
Textrun before selection
Comment 2 Sam Sneddon [:gsnedders] 2021-09-16 02:39:21 PDT
Presumably another LFC/legacy layout difference, Alan?
Comment 3 zalan 2021-09-16 06:20:01 PDT
It looks like a mismatch in text width vs. available horizontal space where IFC manages to fit the content on the line while legacy does not. Visually the IFC layout looks correct as the content does not look to be overflowing the containing block. I also can't reproduce it on trunk.
Comment 4 Tim Guan-tin Chien [:timdream] 2021-09-16 18:38:14 PDT
It is only reproducible with a specific window size.
Comment 5 Radar WebKit Bug Importer 2021-09-21 10:30:36 PDT
<rdar://problem/83358055>
Comment 6 Brent Fulgham 2022-02-12 22:18:46 PST
QA is unable to reproduce the issue.