-
Notifications
You must be signed in to change notification settings - Fork 371
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
elementsFromPoint behavior is unclear #735
Comments
FYI. There is an issue filed for csswg: w3c/csswg-drafts#556 I remember that Blink recently tried to fix the broken behavior in https://chromium-review.googlesource.com/c/chromium/src/+/808446.
That sounds fair argument. @TakayoshiKochi @rakina WDYT? Does blink return an array which has several same elements for elementsFromPoint? |
Right now elementsFromPoint doesn't return multiple identical elements (https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/TreeScope.cpp?sq=package:chromium&l=276) |
Yeah, it doesn't and Gecko won't either, but per spec it should. So implementing the API is guess work atm. |
Closing this in favor of #736 |
Per spec ShadowRoot.elementsFromPoint may return an array which contains host element several times, since retargeting is done for each elements in the result array.
The text was updated successfully, but these errors were encountered: