3 ms·
It would be good if they split out the naming nitpicks into a separate list. `display` should have been called `display-mode`? Maybe, but I'm not sure everyone
by IshKebab 6y ago
It would be good if they split out the naming nitpicks into a separate list. `display` should have been called `display-mode`? Maybe, but I'm not sure everyone would agree and it's very minor. Box sizing should be `border-box` by default? Yeah this is an obvious mistake that I don't think anyone would disagree with, and I imagine is the first thing people set when starting a new project.
- vehemenz 6y agoFor those of us who started using CSS in the late 90s (well before box-sizing was a property), the original box model made perfect sense. And it took me a long time to adjust to box-sizing: border-box, which I only adopted because so many frameworks started using it as default in their base styles. I don't disagree that there wouldn't be a consensus now, but that's only because the border-box convention has completely taken over.
- earthboundkid 6y agoHard disagree. I’ve been making websites since 1997, and the default box model is garbage and unusable.
- kccqzy 6y agoAround 1997 (basically when CSS first came out) many books praised the default box model as sensible and disparaged the border-box model as IE's bastardization of CSS. People hated IE so they hated IE's broken box model.
- earthboundkid 6y agoIE had better CSS support than anything else up until they froze IE6 and eventually Firefox (Chimera!) caught up and surpassed it. The hatred of IE came because it was frozen and non-standard and full of bugs. It wasn’t that the default box model was ever good, it was just that it was the spec, and there was a big push to follow the spec instead of blindly copying bugs from other browsers. At that time, we also thought XHTML was a good idea, but eventually experience taught us how to balance the spec with practicality.
- IshKebab 6y agoI mean... if they said that they were wrong. The default is clearly mad.