Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 46fddf6

Browse files
authored
Update next/image docs for relative parent with layout=fill. (vercel#26615)
vercel#18739 (reply in thread)
1 parent 2844168 commit 46fddf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-reference/next/image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ When `responsive`, the image will scale the dimensions down for smaller
102102
viewports and scale up for larger viewports.
103103

104104
When `fill`, the image will stretch both width and height to the dimensions of
105-
the parent element, usually paired with the [`objectFit`](#objectFit) property.
105+
the parent element, provided the parent element is relative. This is usually paired with the [`objectFit`](#objectFit) property.
106106

107107
Try it out:
108108

0 commit comments

Comments
 (0)