Re: [csswg-drafts] [cssom-view] elementFromPoint, elementsFromPoint, and caretPositionFromPoint should not return an element inside a shadow tree (#556)

Right, something like the [retarget](
https://dom.spec.whatwg.org/#retarget) algorithm over flat tree is what we need. What we're missing is the precise definition / algorithm of what that is. https://github.com/w3c/csswg-drafts/issues/556#issuecomment-434034827 is insufficient because we don't really retarget the first ancestor in the flat tree for example. It would be great if you or someone else can come up with a precise algorithm for this. Unfortunately, I'm caught up in other urgent matters at the moment so won't have a time to do it myself.

FYI, [CSS Scoping Module Level 1](https://drafts.csswg.org/css-scoping/) defines [flat tree](https://drafts.csswg.org/css-scoping/#flat-tree).

-- 
GitHub Notification of comment by rniwa
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/556#issuecomment-457894380 using your GitHub account

Received on Sunday, 27 January 2019 07:08:40 UTC