Re: [csswg-drafts] [css-images] object-fit values per axis (#9066)

> What it actually feels like I want to say is: Contain on the y-axis only. Allow it to overflow on the x-axis.

I think what you actually want to say is "scale the image to match y-axis". Because the button is growing horizontally with more text, you want to it clip or letterbox in that direction. So if we match one axis, the scaling in the other direction is decided by the image's aspect ratio. And it will contain or cover depending on the aspect ratio.

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


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

Received on Friday, 14 July 2023 17:15:21 UTC