Web Components are supported in all modern major browsers

"Web Components" and "Modern Major Browsers" are both moving targets, so this might not always be true, but Web Components can be shipped to most users for basic usability.

ChromeEdgeFirefoxIEOperaSafari
customElements547963No4110.1
ShadowRoot537963No4010.1

If there was a real need to support older browsers, you could resort to using a polyfill, but that comes with its own limitations.

References

‘Window.CustomElements - Web APIs | MDN’. n.d. Accessed 30 March 2021. https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements.

‘ShadowRoot - Web APIs | MDN’. n.d. Accessed 30 March 2021. https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot.

Replies

Back to notes