web-feature: Shadow DOM

baseline logo Widely available

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.