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

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 01 Jun 2016 16:50:00 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-223054869-1464799799-sysbot+gh@w3.org>
I support @rniwa's answer - walking up until you find a valid 
(non-leaky) `offsetParent`, then making sure that `offsetLeft` and 
`offsetTop` are both relative to that, should work great.

This will still leave us with cases where an element is in a shadow 
tree and the only possible offset parents are outside the shadow. That
 leaks in the *opposite* way - info leaking *into* the shadow.  Is 
that ok? I know this happens with CSS inheritance and such, but I 
dunno how strict we are about element refs leaking in.

GitHub Notification of comment by tabatkins
Please view or discuss this issue at 
using your GitHub account
Received on Wednesday, 1 June 2016 16:50:03 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:40:59 UTC