Created by: hkdobrev
The use of inheriting the box-sizing: border-box
rule is recommended.
There are two benefits:
- Easier overriding for third-party components.
- No wildcard selectors for third-party components. So it could be a bit faster.
Here are some references:
I think this quote from CSS Tricks says it all:
This isn't a majorly huge thing. You might already be using the
box-sizing
reset the "old way" and never have gotten bit by it. That's the case for me. But as long as we're promoting a "best practice" style snippet, we might as well hone it to be the best it can be.