const anotTitle = document.createElement ('template'); anotTitle.innerHTML = ` <style> h3 { margin: 0; text-align:center; } </style> <h3><slot></slot></h3>`; class AnotTitle extends AnotElement { constructor() { super(); this.shadowRoot.appendChild(anotTitle.content.cloneNode(true)); } }