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

@rniwa when I’m trying to traverse over `offsetParent`s, which are the
 elements defining containing blocks for absolutely-positioned 
descendants, I want to discover all the nodes affecting position. I am
 deliberately trying to walk up the layout tree.

This is not the same as finding nodes with `querySelector` / 
`getElementsByTagName`, where layout does not affect the results. If I
 don’t care about the layout, I would traverse the `parentNode`s, 
which will not reveal any shadow-hidden nodes.

If `offsetParent` does not return shadow-hidden elements, I would 
expect it to be not allowed to define a containing blocks for 
distributed absolutely-positioned descendants with a shadow-hidden 
element. I. e., shadow-hidden relatively-positioned element does not 
affect positioning of distributed non-shadow-hidden children.

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

Received on Monday, 12 December 2016 09:51:12 UTC