3 ms·
> The people who designed HTML5 and CSS thought procedurally, not geometrically. It shows. The problem the article points out is that they wanted styling to ha
by justinator 10y ago
> The people who designed HTML5 and CSS thought procedurally, not geometrically. It shows.
The problem the article points out is that they wanted styling to happen, before the entire document is downloaded. Obv. you can't say, "hey, this box should be pinned to the bottom of the footer" if the HTML for the footer isn't yet existing in the stream that's downloaded.
I think enough people fume when they see the Flash of Unstyled Content. I don't know if constraint-oriented would work. I (and I think you) would LOVE it to be that way, since css gets ridiculously weird, quick.
- zackbloom 10y agoYou are free to implement anything you like in JavaScript. There are several implementations of this type of constraint layout, but none have ever really taken off.
- abecedarius 10y agoSurely you can say that -- that constraints are declarative means that resolving them doesn't have to happen in a particular order. The solver could stash away the constraint involving an element that doesn't exist yet, until it does. If this sometimes moves elements that are already displayed, that'd be a problem. Isn't it a problem we're seeing anyway?
- wnevets 10y agoIt sounds like people are forgetting that most users were on dial up during the 90s.