W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2016

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

From: Ryosuke Niwa via GitHub <sysbot+gh@w3.org>
Date: Fri, 30 Sep 2016 22:22:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-250866102-1475274164-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:03 UTC