Web features explorer

Shadow DOM

Widely available since 2022-07-15
Tags: api Groups: Web Components

Shadow DOM allows you to attach encapsulated "shadow" DOM trees to elements. A shadow DOM tree is a separate component, isolated from the scripts and styles in other parts of the document. This is a part of Web Components.

Learning resources on MDN

Browser support (view on caniuse.com)

Specifications