When I add children to the web component from outside, adding as reveal will it be a problem for it to benefit from the shadow dom?
When i add element from outside to web component its shows reveal
Asked
Active
Viewed 234 times
1 Answers
2
When the Custom Element has shadowDOM,
Slotted lightDOM content is reflected to <slot>
elements in shadowDOM
The reveal button in F12 tools takes you to the current slotted lightDOM content
Also see: ::slotted CSS selector for nested children in shadowDOM slot
Danny '365CSI' Engelman
- 16,526
- 2
- 32
- 49
-
Also this documents help to me for understand [link](https://javascript.info/slots-composition)
– Burak Akça
Jun 27 '21 at 06:45
Asked
Active
Viewed 234 times
1 Answers
2
When the Custom Element has shadowDOM,
Slotted lightDOM content is reflected to <slot>
elements in shadowDOM
The reveal button in F12 tools takes you to the current slotted lightDOM content
Also see: ::slotted CSS selector for nested children in shadowDOM slot

Danny '365CSI' Engelman
- 16,526
- 2
- 32
- 49
-
Also this documents help to me for understand [link](https://javascript.info/slots-composition) – Burak Akça Jun 27 '21 at 06:45