Bug 298200

Summary: Investigate using HitTestResult to improve nearestClickedDialog
Product: WebKit Reporter: Luke Warlow <lwarlow>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 297954    
Bug Blocks: 284592    

Luke Warlow
Reported 2025-09-01 10:00:40 PDT
Currently to determine if the click "outside" was on the dialog or its `::backdrop` we check the dialogs bounding client rect following the spec prose. However, HitTestResult should be able to identifier if the pointerevent is as a result of clicking on the ::backdrop pseudo element, so we can probably pass that to the event and then use that directly instead of comparing bounding rect.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-09-08 10:01:18 PDT
Note You need to log in before you can comment on or make changes to this bug.