diff --git a/packages/gatsby-plugin-image/src/gatsby-ssr.tsx b/packages/gatsby-plugin-image/src/gatsby-ssr.tsx index b946c12264b40..dc142652afbc2 100644 --- a/packages/gatsby-plugin-image/src/gatsby-ssr.tsx +++ b/packages/gatsby-plugin-image/src/gatsby-ssr.tsx @@ -21,6 +21,9 @@ export function onRenderBody({ setHeadComponents }: RenderBodyArgs): void { position: relative; overflow: hidden; } + .gatsby-image-wrapper picture.object-fit-polyfill { + position: static !important; + } .gatsby-image-wrapper img { bottom: 0; height: 100%;