From 2a9e07c691c2677a280fc05addb904372155d6b7 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Fri, 25 Jun 2021 13:29:45 -0500 Subject: [PATCH] Update next/image docs for relative parent with layout=fill. --- 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: