Content
@
0 reply
0 recast
0 reaction
Darryl Yeo 🛠️
@darrylyeo
The CSS `attr()` function will soon be upgraded to read values directly from HTML attributes using the CSSOM type system. Class names, inline `style` attributes, inherited CSS variables and discrete `data-*` attribute values will no longer be your only entry points for specifying CSS style variants in your HTML templates. https://youtu.be/WcNWf6edIcc https://developer.chrome.com/blog/advanced-attr https://caniuse.com/css3-attr https://developer.mozilla.org/en-US/docs/Web/CSS/attr
2 replies
0 recast
0 reaction
Dante Vortex
@danteska
yo, that’s awesome! finally, we can grab those HTML attribute values straight into CSS. gonna make styling way smoother!
0 reply
0 recast
0 reaction