3 ms·
To avoid CSS inheritance & specificity, the "Cascading" part of CSS is the actual root of all evil. The Cascade is CSS’a superpower. If only someone would com
by alwillis 4y ago
To avoid CSS inheritance & specificity, the "Cascading" part of CSS is the actual root of all evil.
The Cascade is CSS’a superpower.
If only someone would come up with a way to write CSS to make the cascade work for you, not against you.
Oh wait; that would be Inverted Triangle CSS.
[1]: https://www.xfive.co/blog/itcss-scalable-maintainable-css-architecture/ https://www.xfive.co/blog/itcss-scalable-maintainable-css-ar...
- Fire-Dragon-DoL 4y agoI'd like to believe that, but the industry has proven across the board that inheritance sucks. Cascading to me seems essentially inheritance, so I'm disillusioned, it's not a superpower, it's a liability