“Custom Elements Without JavaScript? - Jim Nielsen’s Blog”
I’ve done this quite a bit in the past. The benefit over using classes or attributes for hooking styles is lower specificity so it won’t conflict with component styles.
... works as a web developer in Hveragerði, Iceland, and writes about the web, digital publishing, and web/product development
These are his notes
“Custom Elements Without JavaScript? - Jim Nielsen’s Blog”
I’ve done this quite a bit in the past. The benefit over using classes or attributes for hooking styles is lower specificity so it won’t conflict with component styles.