Bug 230309 - Text is misplaced after selection
Summary: Text is misplaced after selection
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-15 09:54 PDT by Tim Guan-tin Chien [:timdream]
Modified: 2022-02-12 22:18 PST (History)
6 users (show)

See Also:


Attachments
misplaced text after selection (62.41 KB, image/png)
2021-09-15 09:54 PDT, Tim Guan-tin Chien [:timdream]
no flags Details
Textrun before selection (55.32 KB, image/png)
2021-09-15 09:54 PDT, Tim Guan-tin Chien [:timdream]
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.