We need to call prepare_for_replaced_layout() on grid items to populate their natural sizes and aspect ration.