Код: Выделить всё
< /code>
И он мало что делает :) < /p>
class MyElement extends HTMLElement {}
customElements.define('my-element', MyElement);
< /code>
Но многие другие расширяют его < /p>
< /code>
class MyOtherElement extends MyElement {}
customElements.define('my-other-element', MyOtherElement);
< /code>
Вот почему я не мог иметь глобальное правило CSS < /p>
my-element {
display:none;
}
Подробнее здесь: https://stackoverflow.com/questions/676 ... can-render
Мобильная версия