[Webkit-unassigned] [Bug 255265] New: elementsFromPoint doesn't handle sorting preserve-3d

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 10 18:33:51 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255265

            Bug ID: 255265
           Summary: elementsFromPoint doesn't handle sorting preserve-3d
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mattwoodrow at apple.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    webkit-bug-importer at group.apple.com, zalan at apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230411/a53c110d/attachment.htm>


More information about the webkit-unassigned mailing list