3 ms·
There's a suggestion at the end (well, they did it, anyway) to apply box-sizing: border-box selectively, only where needed. That was probably smart and worked f
by kyleyeats 4y ago
There's a suggestion at the end (well, they did it, anyway) to apply box-sizing: border-box selectively, only where needed. That was probably smart and worked for these devs.
Don't do this in your codebase. This is maybe the most toxic and chaotic CSS change you can make to a codebase. Some devs will realize it's a box model thing right away. But the others will suffer in silence and confusion for quite a while. Both groups will hate you for this practice.
- bartaxyz 4y agoThere really should be a way to tell browsers up front about these things like changing box model for all elements, so that it's not forced to apply it for each element on the page one by one. While I'm sure there are many optimisations already in place, at least we could avoid this anti-pattern that everybody's doing on web these days.