| ▲ | cluckindan 3 days ago | |
The issue with nested flexboxes is that flexbox containers size their content to match the container. Therefore, to calculate the size of an item, the sizes of other items need to be known. Now, if one of the items is a flexbox, its item sizes cannot be known until the previous flexbox is laid out. Of course, properly using flex-grow and flex-shrink can optimize that calculation, but what about deeper nested flexboxes? | ||