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

[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 01:54:36 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-180203105-1475200474-sysbot+gh@w3.org>
rniwa has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== elementFromPoint and elementsFromPoint should not return an element
 inside a shadow tree ==
[`elementFromPoint`](https://drafts.csswg.org/cssom-view/#dom-document-elementfrompoint)
 and 
[`elementsFromPoint`](https://drafts.csswg.org/cssom-view/#dom-document-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](https://www.w3.org/TR/shadow-dom/#extensions-to-the-documentorshadowroot-mixin).

More precisely, once these methods are added on 
[`DocumentOrShadowRoot` 
interface](https://dom.spec.whatwg.org/#documentorshadowroot), then we
 need to [**retarget**](https://dom.spec.whatwg.org/#retarget) the 
element we found against the context object.

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/556 using your GitHub 
account
Received on Friday, 30 September 2016 01:54:43 UTC

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