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

>  I think (please let me know if I'm wrong) that due to Shadow DOM encapsulation that some (potentially custom) element being distributed into a slot will have no idea what slot that is,

You can use `Element.assignedSlot`: http://w3c.github.io/webcomponents/spec/shadow/#widl-Element-assignedSlot

---
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-223473766

Received on Friday, 3 June 2016 02:11:27 UTC