the caveat about the item shrinking is the real killer here. if you don't set a specific width/height, you end up with that weird behavior where the child element collapses to its content box. i usually just pair it with
width: 100%
or
explicit dimensions to keep the layout predictable.