# Implement ObjectFit::ScaleDown for images \(\#10063\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c7961b9054d73155d1a6ab9cd26c232468e4098f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c7961b9054d73155d1a6ab9cd26c232468e4098f

Requested commit: c7961b9054d73155d1a6ab9cd26c232468e4098f

Commit: c7961b9054d73155d1a6ab9cd26c232468e4098f

Tree: 583e3d6652bac7ae79cdec656b9167eeac3eee00

Author: Kyle Kelley

Committer: GitHub

## Message

```
Implement ObjectFit::ScaleDown for images (#10063)

While working towards fixes for the image viewer, @mikayla-maki and I
discovered that we didn't have `object-fit: scale-down` implemented.
This doesn't _fully_ solve the image issues as there is some issue where
only the bounds width is updating on layout change that I haven't fully
chased down.

Co-Authored-By: @mikayla-maki 

Release Notes:

- N/A

---------

Co-authored-by: Mikayla Maki <mikayla@zed.dev>
```

## Parents

- [c64c2758c03c8d9766ea0f12639a623c6705b38e](https://git.cafe/gitcafe/zed/commit/c64c2758c03c8d9766ea0f12639a623c6705b38e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c7961b9054d73155d1a6ab9cd26c232468e4098f?format=markdown)
