A shadow tree is a hidden set of DOM nodes whose topmost node is a shadow root. The shadow root is the topmost node of a shadow DOM and not part of th

Shadow tree - Glossary | MDN

submited by
Style Pass
2025-08-02 23:00:03

A shadow tree is a hidden set of DOM nodes whose topmost node is a shadow root. The shadow root is the topmost node of a shadow DOM and not part of the regular document's DOM tree.

The shadow root is attached to another node tree through a specific DOM node referred to as its host. This host may be part of another shadow tree or part of the regular DOM tree. The node tree of a shadow root's host is sometimes referred to as the light tree.

Leave a Comment
Related Posts