In this article on CSS-Tricks, Mads Stoumann digs into :where()
, Custom Properties, and Cascade Layers to control the CSS Cascade.
At the end, Mads concludes:
If you leave with only one takeaway from this article, I hope it’s that the CSS cascade is no longer the enemy it’s often made to be. We are gaining the tools to stop fighting it and start leaning into even more.