The latest ways to deal with the cascade, inheritance and specificity

The cascade is such an intrinsic part of CSS that they put it right there in the name. If you’ve ever needed to use !important to affect specificity in the cascade, you’ll know that it can be a tricky thing to deal with. In the early days of CSS, it was common to see highly specific selectors like this:
#sidebar ul li {}
We’re all much better at managing specificity nowadays. It’s a widely accepted best practice to keep specificity …

The latest ways to deal with the cascade, inheritance and specificity is a post from CSS-Tricks

Link: https://css-tricks.com/latest-ways-deal-cascade-inheritance-specificity/