objectFit

abstract var objectFit: ObjectFit?(source)

The object-fit CSS property sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container.

Syntax: fill | contain | cover | none | scale-down

Initial value: fill

| Chrome | Firefox | Safari |  Edge  | IE  |
| :----: | :-----: | :----: | :----: | :-: |
|   32   |   36    |   10   |   79   | No  |

See also