After chatting with @npub1j3jx...7q2w and @npub1xwma...gt5a I thought I'd have a look into CustomStateSet, where you can add states to your #WebComponents that don't manipulate DOM but can be selected in CSS with `my-component:state(statename) {}`. Pretty cool!
CustomStateSet - Web APIs | MDN
The CustomStateSet interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added a...





