Re: [csswg-drafts] elementFromPoint and elementsFromPoint should not return an element inside a shadow tree

Okay, there's another issue with the current definition either in CSS 
OM or shadow DOM specification.  When the result of hit testing 
results in a `Text` node which is a direct child of `ShadowRoot`, what
 should we return?  It looks like Chrome currently returns `null` but 
that seems broken.

Given the [definition of 
retargeting](https://dom.spec.whatwg.org/#retarget), it should be 
returning the shadow host instead.

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

Received on Friday, 30 September 2016 22:22:52 UTC