All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

CSS Design Critiques: Analysis of Perceived Mistakes in CSS Properties and Specifications

By

OuterVale

5mo ago· 5 min readenInsight

Summary

The article presents a critique of CSS design decisions, listing specific perceived mistakes and suggesting alternative approaches. It covers issues with CSS properties like white-space, animation-iteration-count, vertical-align, and percentage heights, arguing for more intuitive naming conventions and better-defined behavior. The author uses a humorous tone, suggesting these issues should be corrected with a time machine.

Key quotes

· 5 pulled
white-space: nowrap should be white-space: no-wrap
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
Snippet from the RSS feed
That should be corrected if anyone invents a time machine. :P

You might also wanna read