-
Notifications
You must be signed in to change notification settings - Fork 14
How does 'intrinsicsize' work with 'object-fit' #14
Comments
Squishing images is problematic for photographs, but it's not that crazy for vector graphics. So it's not clear to me that this would be Web-compatible. |
@fantasai to clarify:
|
@dvoytenko What I'm saying is that this behavior of images, that they deform when resized to a different aspect ratio, has been built into how the Web renders since the mid 1990s. While on some pages it may be an unintentional error, on others it's probably intentional. I don't think we can change this default behavior. |
@fantasai I think your comment might be more relevant for #4. If you agree, please repost there. The explainer proposes to add a new attribute |
@dvoytenko I'm not convinced changing |
This concern was bought up here. Images get distorted when using object-fit.
@dvoytenko proposed a feasible solution could be forcing object-fit:contain instead of the default object-fit:fill when 'intrinsicsize' is specified.
The text was updated successfully, but these errors were encountered: