3 ms·
Interestingly, both IE and NN had `box-sizing: border-box;` as default behaviour, and at least for me that was sensible behavior. Probably a better decision at
by blackoil 3y ago
Interestingly, both IE and NN had `box-sizing: border-box;` as default behaviour, and at least for me that was sensible behavior. Probably a better decision at that point would have been to update spec and add a quirks mode other way around.
- JimDabell 3y agoborder-box was the original behaviour in an early draft of the specification, but it was changed to content-box before final publication. Browsers that jumped the gun and released with draft behaviour got it wrong. And it wasn’t default behaviour so much as the only behaviour – the box-sizing property that allowed web developers to control this came a long time afterwards.
- CM30 3y agoEven the folks working on the specifications now think border-box should have been the default behaviour: https://wiki.csswg.org/ideas/mistakes https://wiki.csswg.org/ideas/mistakes The only reason it's not is because of backwards compatibility.