This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Seeing as we don't want to throw an exception when you put a Text node as a child of a ShadowRoot, we should at the very least return the host element so that hit testing in a ShadowRoot that has direct text children does something sensible. We probably need to make it return the host if you hit a border/background color too? (this also makes sense since you can querySelector(":host"), so the host really is in the same scope as the ShadowRoot.
This is conceptually similar to the fact that document.elementFromPoint will return the documentElement if the x,y target is within the document's bounds.
Instead of defining it this way, someone should define hit testing on layout boxes.
I'm not sure we want radically different behavior for elementFromPoint() and mouse events and :hover and such for instance.
Moved to https://github.com/w3c/webcomponents/issues/67