w3c/csswg-drafts

[cssom-view] elementFromPoint, elementsFromPoint, and caretPositionFromPoint should not return an element inside a shadow tree

Open

#556 aberto em 30 de set. de 2016

Ver no GitHub
 (54 comments) (0 reactions) (0 assignees)HTML (545 forks)batch import
Help WantedNeeds EditsNeeds Testcase (WPT)cssom-view-1topic: shadow

Métricas do repositório

Stars
 (3.546 stars)
Métricas de merge de PR
 (Mesclagem média 87d 7h) (24 fundiu PRs em 30d)

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.

Guia do colaborador