From 31fcd91067e87a2d6927d8fbfa802dd181162a60 Mon Sep 17 00:00:00 2001 From: raresportan Date: Mon, 4 Oct 2021 16:52:36 +0300 Subject: [PATCH] GatsbyImage not displaying image in IE11 --- packages/gatsby-plugin-image/src/gatsby-ssr.tsx | 3 +++ 1 file changed, 3 insertions(+) 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%;