Feature: contain: 'outside', but allow the image to fit the container? #577
Labels
feature
votes needed
Feature requests are closed at first, but will be implemented with enough upvotes
It's a little bit difficult to describe, so I got no luck while looking for an existing issue. Sorry if this is a duplicate.
Basically, I'd like to have the
outside
contain mode, but allow the image to be zoomed out to fit in the container (like cssobject-fit: contain
). The image is not allowed to be further zoomed out. When the image is smaller than the container, it should be center aligned both horizontally and vertically.E.g. if the container is 100x100 px, the image is 400x200px, it can be zoomed out by a factor of 0.25, which makes its visual size 100x50 px. It will be as wide as the container, and vertically center-aligned.
The text was updated successfully, but these errors were encountered: