- From: Takayoshi Kochi via GitHub <sysbot+gh@w3.org>
- Date: Tue, 02 Aug 2016 02:27:56 +0000
- To: public-css-archive@w3.org
No, it happens when an element is slotted into a closed shadow tree.
```html
<div id="shadow" style="position: relative">
#shadow-root (closed)
<div id="container" style="position: relative">
<slot></slot>
</div>
<div id="X">Hello</div>
</div>
```
`div#X`'s real offsetParent is `div#container`, but is unclosed to
`div#X`, it will return
`div#shadow`.
Hmm, I should have used "the parent of the element *in the flat tree*"
for all "the parent of ~"
occurrences.
--
GitHub Notification of comment by TakayoshiKochi
Please view or discuss this issue at
https://github.com/w3c/csswg-drafts/pull/252#issuecomment-236775714
using your GitHub account
Received on Tuesday, 2 August 2016 02:28:05 UTC