ements.define(
            name,
            class extends window.HTMLElement {
              constructor() {
                super();
                if (template && !this.shadowRoot) {
                  this.attachShadow({mode: 'open'});
                  this.shadowRoot.appendChild(
                    document.importNode(template.content, true)
                  );
                }
              }
              connectedCallback() {
                window.ShadyCSS && window.ShadyCSS.styleElement(this);