WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
294570
Hit-testing should use a device-pixel size bounding box
https://bugs.webkit.org/show_bug.cgi?id=294570
Summary
Hit-testing should use a device-pixel size bounding box
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
Add attachment
proposed patch, testcase, etc.
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
We probably need something like
https://chromium.googlesource.com/chromium/src.git/+/c47a6f0b4a592c2383fb553b6169f89ab01d851d
Ahmad Saleem
Comment 4
2025-06-16 20:23:20 PDT
Simon - I tried it here -
https://github.com/WebKit/WebKit/pull/37975/files
Radar WebKit Bug Importer
Comment 5
2025-06-23 11:16:17 PDT
<
rdar://problem/154111494
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug