With the attr() updates I’m pretty sure you could make a real #WebComponent without any JavaScript, and it would be useful!
Reposted from Una Kravets
Dang I'm excited about new semantic attr() capabilities in CSS!

I wrote a post about why this feature is so powerful, how it could change the way you build components, and how I would use it.

Advanced attr() is rolling out in Chrome 133 starting next week 🥰

una.im/advanced-attr/

Comments