Bug 294570
Summary: | Hit-testing should use a device-pixel size bounding box | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
Component: | UI Events | Assignee: | 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)
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)
This affects fast/frames/iframe-subpixel-hit-test.html which I am adding for bug 294571.
Simon Fraser (smfr)
We should also make imported/w3c/web-platform-tests/css/css-transforms/transform-scale-hittest.html pass.
Simon Fraser (smfr)
We probably need something like https://chromium.googlesource.com/chromium/src.git/+/c47a6f0b4a592c2383fb553b6169f89ab01d851d
Ahmad Saleem
Simon - I tried it here - https://github.com/WebKit/WebKit/pull/37975/files
Radar WebKit Bug Importer
<rdar://problem/154111494>