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: Anton Platonov via GitHub <sysbot+gh@w3.org>
Date: Thu, 16 Jun 2016 14:21:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-226499864-1466086902-sysbot+gh@w3.org>
@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

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