Baseline Widely HTML
Declarative shadow DOM
The shadowrootmode attribute on <template> creates a shadow root without the use of JavaScript. It is a declarative alternative to the attachShadow() method.
Baseline Status
Widely Available
Since 2024-02-20
First Core Launch
Chrome 111
2023-03-07
Core-3 Stability
350d
Last: Firefox (2024-02-20)
BCD Keys Mapped
9
Group: HTML
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Chrome | desktop | 111 | 2023-03-07 |
| Chrome Android | mobile | 111 | 2023-03-07 |
| Edge | desktop | 111 | 2023-03-13 |
| Safari | desktop | 16.4 | 2023-03-27 |
| Safari on iOS | mobile | 16.4 | 2023-03-27 |
| Firefox | desktop | 123 | 2024-02-20 |
| Firefox for Android | mobile | 123 | 2024-02-20 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| api.HTMLTemplateElement.shadowRootClonable | DOM API | 153d |
| api.HTMLTemplateElement.shadowRootDelegatesFocus | DOM API | 209d |
| api.HTMLTemplateElement.shadowRootMode | DOM API | 350d |
| api.HTMLTemplateElement.shadowRootSerializable | DOM API | 125d |
| api.HTMLTemplateElement.shadowRootSlotAssignment | DOM API | 118d |
| html.elements.template.shadowrootclonable | HTML | 153d |
| html.elements.template.shadowrootdelegatesfocus | HTML | 209d |
| html.elements.template.shadowrootmode | HTML | 350d |
| html.elements.template.shadowrootserializable | HTML | 125d |