Re: [w3c/webcomponents] How can a custom element detect when it is transcluded into a shadow tree? (#504)

> I don't think you can create a flat tree mirror for closed shadow trees because all those slots that may have distributed contents would not be accessible from your code.

My code will have access to the distributed content because the elements being distributed into all the `slots` will be custom elements that I've defined within an private ES6 module scope. The flat-tree mirror can be constructed inside that private scope.

All I need to do is change my API so that it is a parent-to-child API instead of a child-to-parent API. This means that to construct the flat tree mirror I will have parent elements observing children instead of child elements observing parents. Get what I mean? I see the path, so I'm gonna make that change soon.

> Yes, it's okay for Inner tree to see Outer tree, whether Inner tree is open or closed.

Perfect, thanks for the confirmation! :] (The description you linked to is like a completely foreign language to me. x] )

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/504#issuecomment-224053075

Received on Monday, 6 June 2016 18:54:57 UTC