🏠 New in High Baseline Support: Declarative shadow DOM

August 20, 2026

caniuse · mdn · spec

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

Source features