Bug 258256

Summary: Selection incorrectly highlights text node before inline-wrapped contenteditable=false island
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: rniwa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2023-06-17 17:58:34 PDT
Hi Team,

Another bug from Chrome Monorail: crbug.com/534466


Test Case: data:text/html,<h1 contenteditable>W<u><span contenteditable=false>XY</span></u>Z</h1>

^ Open this in STP172 and try to drag select 'XY' and the selection rect 'blue' will also go over 'W' for no good reason.

> Double Clicking works on XY and select correctly.

> If you do from Y side to X or X side to Y selection in reverse, it select have 'selection' rect on 'W'

I think we can fix these issues, so raising this bug.

Also adding 'BrowserCompat' since both Chrome Canary 116 and Firefox Nightly 116 works as expected and don't have issue.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-06-24 17:59:14 PDT
<rdar://problem/111272444>