Re: [csswg-drafts] [css-images] Add `object-fit: stretch` to force SVGs to stretch without keeping their aspect ratio? (#12378)

Yeah, the issue here is that object-fit handles how the image determines its concrete object size; it's then the image's own responsibility to fill that box. Raster images just stretch into that box, but SVGs can do an additional pass of aspect ratio handling.

Fixing that would require passing styling information down into the embedded document, which isn't possible right now. (A number of other properties would be useful to set if it was possible.)

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


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

Received on Monday, 23 June 2025 20:53:08 UTC