3 ms·
The hard part of the cascading in CSS for a page is that it is global in scope. In the current landscape of complex html/javascript applications this global na
by zaphar 11y ago
The hard part of the cascading in CSS for a page is that it is global in scope. In the current landscape of complex html/javascript applications this global nature tends to snowball.
It's never safe to remove something so you have to fill your css with more and more complex rules and !important's to override the rest of the CSS on the page. At some point your CSS becomes impossible to manage and you are almost forced to start over again from scratch. After a couple of these times you start to curse the whole Global always on Cascading feature.
This is why ShadowDom and the WebComponents stuff is such a breath of fresh air.