Unverified Commit e8a9bd19 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Update next/image docs for relative parent with layout=fill. (#26615)

https://github.com/vercel/next.js/discussions/18739#discussioncomment-435925
parent 6f420962
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment