2 ms·
OTOH, CSS can handle a vastly wider array of styles and use cases. I agree it’s crufty, but there are many historical / legacy reasons for it that are still in
by dahart 5y ago
OTOH, CSS can handle a vastly wider array of styles and use cases. I agree it’s crufty, but there are many historical / legacy reasons for it that are still in use today.
If used in practice for anything substantial, RectCut will start to acquire cruft too. First thing to get added would be resizeable / dynamic layouts. Next would be something akin to the CSS grid layout, which is already the successor to flexbox (closest CSS layout mode to RectCut).
- chrismorgan 5y agoGrid is not the successor to flexbox. They’re different layout techniques that were invented at much the same time (though grid took longer to mature) for different situations. Flexbox is one-dimensional plus wrapping, while grid is two-dimensional. Now in practice, most applications of grid could be rewritten to use flexbox, but there are plenty of layouts that can be achieved with one but not with the other, both ways.
- dahart 5y ago> Grid is not the successor to flexbox. Yes, it literally is. Grid came after flexbox in W3C drafts, in W3C recommendations, in broad browser support, and in widespread use. Several years ago, flexbox was being used widely while grid support was nonexistent, and today grid is still lagging behind flexbox a little. https://www.w3.org/TR/css-flexbox-1/ https://www.w3.org/TR/css-flexbox-1/ https://www.w3.org/TR/css-grid-1/ https://www.w3.org/TR/css-grid-1/ https://caniuse.com/?search=grid https://caniuse.com/?search=grid https://caniuse.com/?search=flexbox https://caniuse.com/?search=flexbox
- chrismorgan 5y agoSuccessor indicates that it’s designed to replace it. That’s not the case and never was. They have different purposes. (For the rest, my recollection was definitely off on the timing, and most significantly I forgot the proto-flexbox stuff that Gecko and WebKit had long before grid was proposed. Beyond that, grid certainly took longer to mature, as I remarked, being more complex and needing to interact with more features to be optimally useful. Incidentally, IE got both flexbox and grid (earlier drafts) at the same time, in IE10, Microsoft leading the way on grid by several years, five by the most common way of reckoning.)
- deleted 5y ago[deleted]