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

@rniwa node B’s containing block is the viewport, since it is fixed. I
 assume that in case when the node’s containing block is the viewport,
 `offsetParent` is null. So, according to your answer, it will be null
 in this case. Though to my understanding of the spec, it should be 
`document.body`.

Anyways, it doesn't really matter for this case if `offsetParent` of C
 is `document.body` or `null`. Neither of these variants allow to find
 out that C's positioning is actually affected by B. Neither of these 
variants allow to find out that the C is inside a fixed container.

-- 
GitHub Notification of comment by platosha
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/159#issuecomment-226499864 
using your GitHub account

Received on Thursday, 16 June 2016 14:21:44 UTC