WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
255265
elementsFromPoint doesn't handle sorting preserve-3d
https://bugs.webkit.org/show_bug.cgi?id=255265
Summary
elementsFromPoint doesn't handle sorting preserve-3d
Matt Woodrow
Reported
2023-04-10 18:33:51 PDT
RenderLayer::hitTestLayer only handles finding a single hit layer when we're doing 3d depth sorting for transform-style:preserve-3d. If we're using elementsFromPoint and want to return all the elements at the point, we don't handle sorting these by depth. I think we need to collect a list of HitTestResult objects (and HitLayer objects), with the associated depth, and then sort the result by depth at the end and merge into a single HitTestResult object. This list would need to be passed into RenderLayer::hitTestList so that we can append to it from there rather than returning a single result from hitTestList.
Attachments
Testcase
(1.09 KB, text/html)
2023-04-10 18:36 PDT
,
Matt Woodrow
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-04-10 18:34:09 PDT
<
rdar://problem/107861877
>
Matt Woodrow
Comment 2
2023-04-10 18:34:15 PDT
It looks like blink has the same bug here, but Gecko gets it right.
Matt Woodrow
Comment 3
2023-04-10 18:36:20 PDT
Created
attachment 465841
[details]
Testcase
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