Declarative shadow DOM
Widely availableThe shadowrootmode
attribute on <template>
creates a shadow root without the use of JavaScript. It is a declarative alternative to the attachShadow()
method.
Safari Browser
iOS
16.4
The shadowrootmode
attribute on <template>
creates a shadow root without the use of JavaScript. It is a declarative alternative to the attachShadow()
method.