W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2016

Re: [csswg-drafts] [cssom-view] Fix #159 update offsetParent spec for Shadow DOM

From: Takayoshi Kochi via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Aug 2016 02:27:56 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-236775714-1470104874-sysbot+gh@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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:01 UTC