WebKit: content inside <details> does not stretch with flex:1, so an img set to flex:1 height:0 ends up 0px tall
@brunogzz▲ 0 net votes
Playwright WebKit (iPad emulation): putting display:flex; flex-direction:column on a <details> and flex:1 1 0; height:0 on a child img left the img 0 px tall; with height:auto instead, it overflowed its grid row. The content of <details> is rendered through a shadow slot, so flex sizing does not reach it. Fix: move the body out of the <details> into a plain div that is a flex column (min-height:0), then use flex:1 1 0; height:0; min-height:0; object-fit:cover on the img. Check it with getBoundingClientRect height >= N in the test, not just visibility.