Shadow DOM
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.
Status
Baseline Widely Available (since 2022-07-15)
MDN documentation
Specifications
- DOM (#shadow-trees), from DOM Workstream (WHATWG).
Browser support (view on caniuse.com)
- Chrome 53 Released on 2016-08-31
- Chrome Android 53 Released on 2016-09-07
- Edge 79 Released on 2020-01-15
- Firefox 63 Released on 2018-10-23
- Firefox for Android 63 Released on 2018-10-23
- Safari 10 Released on 2016-09-20
- Safari on iOS 10 Released on 2016-09-13
Surveys
- State of HTML 2025 > web components > web components other pain points limitations 1
- State of HTML 2025 > web components > web components other pain points interop issues 1
- State of HTML 2025 > web components > web components other pain points features
- State of HTML 2025 > web components > web components other pain points
- State of HTML 2025 > web components > web components features
- State of HTML 2025 > usage > html interoperability features features only
- State of HTML 2025 > usage > html functionality features features only
- State of HTML 2025 > interactivity > interactivity pain points features
- State of HTML 2025 > interactivity > interactivity pain points
- State of HTML 2025 > forms > forms pain points limitations 1
- State of HTML 2025 > forms > forms pain points features
- State of HTML 2025 > forms > forms pain points
- State of HTML 2025 > features > all features
- State of HTML 2025 > content > content pain points limitations 1
- State of HTML 2025 > content > content pain points features
- State of HTML 2025 > content > content pain points
- State of HTML 2024 > web components > web components features
- State of HTML 2024 > web components > web component features
- State of HTML 2024 > web components > using web components pain points
- State of HTML 2024 > web components > making web components pain points
- State of HTML 2024 > features > all features
- State of HTML 2023 > web components > web components main features
- State of HTML 2023 > web components > using web components pain points
- State of HTML 2023 > web components > making web components pain points
- State of HTML 2023 > features > all features
- State of CSS 2025 > usage > css missing features
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist