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

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 
https://github.com/w3c/csswg-drafts/issues/159#issuecomment-223054869 
using your GitHub account

Received on Wednesday, 1 June 2016 16:50:03 UTC