web-features explorer

Declarative shadow DOM

Newly available since 2024-02-20 (baseline low)

The shadowrootmode attribute on <template> creates a shadow root without the use of JavaScript. It is a declarative alternative to the attachShadow() method.

Compatibility (view on caniuse.com)

BCD data