Skip to content
Webcomponents polyfills monorepo
HTML JavaScript CSS
Branch: master
Clone or download
azakus [HTMLImports] Fix issue with style elements in svg (#203)
* [HTMLImports] Fix issue with style elements in svg

* Remove promises from style in svg test
Latest commit e1c9dbb Sep 16, 2019

Build Status Mentioned in Web Components the Right Way

Monorepository for WebComponents v1 polyfills

Note. For polyfills that work with the older Custom Elements and Shadow DOM v0 specs, see the v0 branch of the webcomponentsjs repo.

Note. For polyfills that work with HTML Imports, see the v1 branch of the webcomponentsjs repo.

A suite of polyfills supporting the Web Components specs:

For browsers that need it, there are also some minor polyfills included:

How to Install



The entire WebComponents suite can be installed at once and loaded together for maximum compatibility.

More information about how the polyfill bundles, and feature-detecting loader work are in the webcomponentsjs README.


Individual polyfills can be installed with the @webcomponentsjs/ scope

Custom Elements

npm install @webcomponents/custom-elements

Shadow DOM with ShadyCSS

Note: This polyfill requires manual setup and API calls for style encapsulation

npm install @webcomponents/shadydom @webcomponents/shadycss


npm install @webcomponents/template

HTML Imports

⚠️ HTML Imports has been deprecated, and will be removed from Chrome in the future. Please transition to ES Modules! ⚠️

npm install @webcomponents/html-imports

How to Develop

npm install
npm run bootstrap
npm run build

How to Test

npm run build
npm test
You can’t perform that action at this time.