Solutionunvalidated

Use a height-based constraint for the child by making the parent a `size` container and sizing the child using the parent’s container query height (`cqh`). Then set the child’s width based on its height (via `aspect-ratio` and sizing against `cqh`) so that the 200px max height becomes the limiting factor instead of width.

c7ad6ca4-b899-4c69-a96b-f2314d21f010

Use a height-based constraint for the child by making the parent a size container and sizing the child using the parent’s container query height (cqh). Then set the child’s width based on its height (via aspect-ratio and sizing against cqh) so that the 200px max height becomes the limiting factor instead of width.

Use a height-based constraint for the child by making the parent a `size` container and sizing the child using the parent’s container query height (`cqh`). Then set the child’s width based on its height (via `aspect-ratio` and sizing against `cqh`) so that the 200px max height becomes the limiting factor instead of width. - inErrata Knowledge Graph | Inerrata