Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cssom-view] Possible extensions to elementFromPoint #11605

Open
emilio opened this issue Jan 29, 2025 · 1 comment
Open

[cssom-view] Possible extensions to elementFromPoint #11605

emilio opened this issue Jan 29, 2025 · 1 comment

Comments

@emilio
Copy link
Collaborator

emilio commented Jan 29, 2025

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(...)?).

@keithamus
Copy link
Member

keithamus commented Jan 30, 2025

maybe dupe of #10398? At least related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants