Bug 214367

Summary: Event regions need to respect clip-path
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: augus.dupin, dbates, koivisto, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=214362
https://bugs.webkit.org/show_bug.cgi?id=233084
Bug Depends on:    
Bug Blocks: 126207    
Attachments:
Description Flags
test to drop into editing/editable-region
none
Example with touch-action none

Description Simon Fraser (smfr) 2020-07-15 11:35:12 PDT
Created attachment 404366 [details]
test to drop into editing/editable-region

If an element is clipped with the clip-path property, event regions need to respect that; currently, editable regions (which do not rely on clip-path being composited) are wrong for descendants of elements with clip-path.

This is important because content uses clip-path to hide descendants from hit-testing (see bug 214362).
Comment 1 Radar WebKit Bug Importer 2020-07-15 11:35:40 PDT
<rdar://problem/65617631>
Comment 2 Simon Fraser (smfr) 2020-07-15 11:52:32 PDT
Created attachment 404369 [details]
Example with touch-action

This example shows that the bug can prevent page scrolling.
Comment 3 Bruno Stasse 2021-11-13 07:01:29 PST
The following bug might be related: https://bugs.webkit.org/show_bug.cgi?id=233084