Skip to content

[cssom-view] Possible extensions to elementFromPoint #11605

Open
@emilio

Description

@emilio

While going through #10992, I realized that Gecko at least has a fair amount of extra extensions for this:

  • The ability of querying for nodes, not just Elements. That's useful with Shadow DOM specifically, because if you just have slotted text you have no way of getting it?
  • The ability of hit testing a whole rect, not just a point. I'm pretty sure other engines need to have that capability as well for IntersectionObserver v2 and "fat finger" targetting.

These seems like logical / useful extensions to this (something like nodesFromRect(...)?).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions