Re: [csswg-drafts] [css-rhythm-1] interaction of block-step-size and aspect-ratio (#11205)

I think what authors will expect is for:
- the small square will grow in both directions, maintaining aspect ratio
- the full-width image only grows in one direction, not maintaining aspect ratio 

… but only when `block-step-insert: content-box`.

If `block-step-insert` is set to `margin-box` or `padding-box` then the aspect ratio will be ignored in all cases. AKA, the square hamburger photo will stay exactly the same size, and just have more margin/padding above/below. 

Perhaps the rubric could be something like this: 
- if `block-step-insert: content-box` 
- then attempt to adjust the `auto` dimension in order to maintain `aspect-ratio`
- if there is not enough room to adjust height/width because of the sizing of the container, then don't, instead ignore the aspect ratio

-- 
GitHub Notification of comment by jensimmons
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11205#issuecomment-2587733813 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 13 January 2025 17:25:23 UTC