Robin Rendle — How to Kill the Cascade

April 5, 2024

I love the tag and I love CSS. I still think the way that styles cascade and can’t error out is ingeniously resilient. But, in this blogger’s opinion, the cascade has always had this glaring, terrible flaw.

Source: Robin Rendle — How to Kill the Cascade

Robin Rendle experiments with techniques to have components you can add to any page styled only by the CSS defined inside the components, free of the impact of CSS from the surrounding document.

Inheritance from the surrounding document (and cascading from associated styles) are two subtle, powerful and complex aspects of CSS. Rendle attempts to cut the Gordian knot, in a specific and important use case.