No, both suffer from the same problem. A small innocuous change a long way away can break _everything_. While this is possible in other languages (eg macros in C), it’s a relatively small risk and/or it’s localised. CSS is so hard to get right and so easy to break.