From e8a9bd19967c9f78575faa7d38e90a1270ffa519 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Fri, 25 Jun 2021 13:50:10 -0500 Subject: [PATCH] Update next/image docs for relative parent with layout=fill. (#26615) https://github.com/vercel/next.js/discussions/18739#discussioncomment-435925 --- docs/api-reference/next/image.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-reference/next/image.md b/docs/api-reference/next/image.md index 552902f76082a..0efb0121a3a8f 100644 --- a/docs/api-reference/next/image.md +++ b/docs/api-reference/next/image.md @@ -102,7 +102,7 @@ When `responsive`, the image will scale the dimensions down for smaller viewports and scale up for larger viewports. When `fill`, the image will stretch both width and height to the dimensions of -the parent element, usually paired with the [`objectFit`](#objectFit) property. +the parent element, provided the parent element is relative. This is usually paired with the [`objectFit`](#objectFit) property. Try it out: