w3c/csswg-drafts
Voir sur GitHub[cssom-view] elementFromPoint, elementsFromPoint, and caretPositionFromPoint should not return an element inside a shadow tree
Open
#556 ouverte le 30 sept. 2016
Help WantedNeeds EditsNeeds Testcase (WPT)cssom-view-1topic: shadow
Métriques du dépôt
- Stars
- (3 546 stars)
- Métriques de merge PR
- (Merge moyen 87j 7h) (24 PRs mergées en 30 j)
Description
elementFromPoint and elementsFromPoint should not return an element inside a shadow tree. Instead, it should look for the highest shadow host of the element and return that instead so that it doesn't leak an element in shadow trees.
See the shadow DOM specification.
More precisely, once these methods are added on DocumentOrShadowRoot interface, then we need to retarget the element we found against the context object.