Bug 294570

Summary: Hit-testing should use a device-pixel size bounding box
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: UI EventsAssignee: Abrar Rahman Protyasha <a_protyasha>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=294571

Simon Fraser (smfr)
Reported 2025-06-16 11:15:54 PDT
HitTestLocation currently makes a 1px box with the location at its top-left for hit-testing. That results in coarser hit-test that necessary. I think we should use a device-pixel sized box. This becomes more relevant when we allow device-pixel accuracy for pointer events.
Attachments
Simon Fraser (smfr)
Comment 1 2025-06-16 11:19:22 PDT
This affects fast/frames/iframe-subpixel-hit-test.html which I am adding for bug 294571.
Simon Fraser (smfr)
Comment 2 2025-06-16 14:37:15 PDT
We should also make imported/w3c/web-platform-tests/css/css-transforms/transform-scale-hittest.html pass.
Simon Fraser (smfr)
Comment 3 2025-06-16 14:42:23 PDT
Ahmad Saleem
Comment 4 2025-06-16 20:23:20 PDT
Radar WebKit Bug Importer
Comment 5 2025-06-23 11:16:17 PDT
Note You need to log in before you can comment on or make changes to this bug.