Skip to content

Commit e8a9bd1

Browse files
authored
Update next/image docs for relative parent with layout=fill. (#26615)
#18739 (reply in thread)
1 parent 6f42096 commit e8a9bd1

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)