docs: fix typo in image-directive.md (#48115)

PR Close #48115
This commit is contained in:
Mikhail Savchuk
2022-11-18 14:59:10 +04:00
committed by Dylan Hunn
parent 8d81fcbe20
commit b653ee340e
+1 -1
View File
@@ -93,7 +93,7 @@ When you add the `fill` attribute to your image, you do not need and should not
</code-example>
You can use the [obect-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property to change how the image will fill its container. If you style your image with `object-fit: "contain"`, the image will maintain its aspect ratio and be "letterboxed" to fit the element. If you set `object-fit: "cover"`, the element will retain its aspect ratio, fully fill the element, and some content may be "cropped" off.
You can use the [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property to change how the image will fill its container. If you style your image with `object-fit: "contain"`, the image will maintain its aspect ratio and be "letterboxed" to fit the element. If you set `object-fit: "cover"`, the element will retain its aspect ratio, fully fill the element, and some content may be "cropped" off.
See visual examples of the above at the [MDN object-fit documentation.](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)