4 ms·
Ok I dont have time to listen to the podcast, and could not figure out which one it refers to. But I'll bite on the headline. CSS is difficult because it was n
by fifilura 3y ago
Ok I dont have time to listen to the podcast, and could not figure out which one it refers to. But I'll bite on the headline.
CSS is difficult because it was not designed with logic as input as a programming language.
It was designed from expected print output.
"I want to do this thing that is popular in New York Times magazine".
Floats, run-in, first line, multi column.
Static papers that were never meant to move around. And you were never meant to have floats in a float or first line with a different font size inside an auto width table.
This is why it is so riddled with edge cases.
- Osiris 3y agoThis is a really interesting perspective. It does seem like CSS is "reverse engineered" from expected output rather than the other way around.
- richardwhiuk 3y agoThat's not at all true - it took ages before CSS added multi-column layout.
- fifilura 3y agoBoth can be true. It took long to make it into the specification yes. But I am certain it was part of the original drafts. Just hard to implement so it got no extra push from the implementation side.