Home → The Classics → Farai's Codelab
Incomplete List of Mistakes in the Design of CSS
Published:
See Incomplete List of Mistakes in the Design of CSS on wiki.csswg.org
This wiki pages looks at some of the mistakes with how CSS is designed. The things people are frustrated with in CSS like cascade layers are features rather than bugs.
The ones which standout to me are:
Box-sizing should be
border-box
by default.It shouldn’t be
!important
— that reads to engineers as “not important”.rgba()
andhsla()
should not exist,rgb()
andhsl()
should have gotten an optional fourth parameter insteadThe top and bottom margins of a single box should never have been allowed to collapse together automatically as this is the root of all margin-collapsing evil.
Table layout should be sane.
The
display
property should be calleddisplay-type
It would be nice if these were fixed, but that would seriously break backwards comparability, which is a great feature of the web.