Day 70: the defined pseudo-class

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
:defined represents any element that has been defined. This includes standard elements and custom elements that have been successfully defined. [data-sample] :defined { background-color: #000; color: #fff; } class BasicComponent extends HTMLElement { constructor() { super(); } } customElements.define('de-fined', BasicComponent);...