I have a nested set of flexboxes, mostly passing on identical size downwards. In the innermost flexbox, there is an image. If that image is too long along any axis, I want scrollbars on the innermost (purple) box.
I learned already how to prevent overshooting along the main axis (link 1, link 2). Basically
flex: auto;
width: 0;
overflow: auto;
But I have no Idea, how to limit along the sizing cross-axis. (Note: cross-axis is vertical here. Green and blue box have a horizontal main axis as their (default) flex-direction is 'row'.)