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

Re: [csswg-drafts] HTMLElement.prototype.offsetParent leaks a node inside a shadow tree

From: Ryosuke Niwa via GitHub <sysbot+gh@w3.org>
Date: Mon, 12 Dec 2016 08:58:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-266374843-1481533098-sysbot+gh@w3.org>
No, I think if ancestor's root is a shadow root, then we need to look 
for its parent and adjust `offsetLeft` and `offsetRight`.  Basically, 
we want to find the first ancestor `offsetParent` which is a direct 
child of one of ancestor trees of the node on which author called 
`offsetParent`.

-- 
GitHub Notification of comment by rniwa
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/159#issuecomment-266374843 
using your GitHub account
Received on Monday, 12 December 2016 08:58:21 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:27 UTC