Bug 203688 - [iOS] Text selection escapes overflow clip
Summary: [iOS] Text selection escapes overflow clip
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-31 11:26 PDT by Ali Juma
Modified: 2019-10-31 11:58 PDT (History)
6 users (show)

See Also:


Attachments
Screenshot (72.47 KB, image/png)
2019-10-31 11:26 PDT, Ali Juma
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ali Juma 2019-10-31 11:26:04 PDT
Created attachment 382482 [details]
Screenshot

When text is selected inside an overflow:scroll element, and then that scroller is scrolled so that the selected text is no longer visible, the selection highlight is still drawn, outside the clip.

For example:
1. Visit https://jsfiddle.net/s82hfLkn/1/show.
2. Select "Hello" and then scroll the pink scrolling div.
3. Wait until the div has stopped moving.

At this point, the selection highlight will be drawn above the div, even though the selected text is now clipped out. See the attached screenshot.