Tech News
← Back to articles

Incomplete List of Mistakes in the Design of CSS

read original related products more articles

That should be corrected if anyone invents a time machine. :P

white-space: nowrap should be white-space: no-wrap and line wrapping behavior should not have been added to white-space

animation-iteration-count should just have been animation-count (like column-count !)

vertical-align should not apply to table cells. Instead the CSS3 alignment properties should exist in Level 1.

vertical-align: middle should be text-middle or x-middle because it's not really in the middle, and such a name would better describes what it does.

Percentage heights should be calculated against fill-available rather than being undefined in auto situations.

Table layout should be sane.

Box-sizing should be border-box by default.

background-size with one value should duplicate its value, not default the second one to auto . Ditto translate() .

background-position and border-spacing (all 2-axis properties) should take *vertical* first, to match with the 4-direction properties like margin .

... continue reading