3 ms·
The W3C box model became standard and IE was criticized for its quirky noncompliant behavior [1], but then many years later 'box-sizing: border-box' was introdu
by niftich 9y ago
The W3C box model became standard and IE was criticized for its quirky noncompliant behavior [1], but then many years later 'box-sizing: border-box' was introduced and widely praised and adopted by frameworks [2][3]; it's funny how things change.
[1] https://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug https://en.wikipedia.org/wiki/Internet_Explorer_box_model_bu... [2] https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing [3] https://css-tricks.com/international-box-sizing-awareness-day/ https://css-tricks.com/international-box-sizing-awareness-da...
- gsnedders 9y ago> then many years later 'box-sizing: border-box' was introduced and widely praised and adopted by frameworks Well, IE implemented their version of the box model in '97 (coincidently, NN4 did the same); the box-sizing property was first proposed in 1999[1], and first appeared in a draft in 1999[2], and implemented in Gecko in 1999[3] and in IE5/Mac in 2000[4]. That's two years from IE/NN shipping the non-standard box model (the standard one was defined before IE4 and NN4 shipped) to having a property to toggle between them. To me, that isn't "many years". Really what makes it seem like many years is the fact that IE didn't implement box-sizing until IE8 which shipped in 2009. [1]: https://lists.w3.org/Archives/Member/w3c-css-wg/1999JanMar/0201.html https://lists.w3.org/Archives/Member/w3c-css-wg/1999JanMar/0... (sorry, W3C MO space, but I think at this point nobody cares if I mention that publicly) [2]: https://www.w3.org/TR/1999/WD-css3-userint-19990916#box-sizing https://www.w3.org/TR/1999/WD-css3-userint-19990916#box-sizi... [3]: https://github.com/mozilla/gecko/commit/3ee32d59158a036bd6673c72ed29b137f1fa78bb https://github.com/mozilla/gecko/commit/3ee32d59158a036bd667... [4]: http://tantek.com/notes/csssupport.html http://tantek.com/notes/csssupport.html
- dtech 9y agoIE's box model always felt much more natural. The problem was that the exact same CSS would result in widely different layouts in most browsers. IE was stupid to not implement the spec, the spec was stupid for not doing it the way IE did.