terribleMia’s avatarterribleMia’s Twitter Archive—№ 9,880

    1. What is the very bare minimum JS (or JS-syntax) that can be used to create a full HTML/CSS custom element? Like, I don't want to be writing my CSS/HTML as JS template strings. Can I do it? How much can I hide the required JS?
  1. …in reply to @TerribleMia
    My first Custom Element, using only the single-tweet JS provided by WestbrookJ in the thread… codepen.io/mirisuzanne/pen/GRNwmpm Not sure how useful :host { display: contents; } with nested article is… Still have a lot of issues to figure out, but this feels like a decent start?
    1. …in reply to @TerribleMia
      Like I wish that I could (declarative-ly) have e.g. the host _be_ an article, with certain attributes applied, and allow those to be added-to or merged-with attributes applied by the user. Similar with attributes on the avatar image, rather than replacing the element wholesale.