4 ms·
> 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 w
by 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]