Skip to content

Commit

Permalink
fix(gatsby-plugin-image): GatsbyImage not displaying image in IE11 (#…
Browse files Browse the repository at this point in the history
…33416) (#33806)

(cherry picked from commit d708d91)

Co-authored-by: Rares Portan <43433598+raresportan@users.noreply.github.com>
  • Loading branch information
GatsbyJS Bot and raresportan committed Nov 2, 2021
1 parent 880022e commit 35b48f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gatsby-plugin-image/src/gatsby-ssr.tsx
Expand Up @@ -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%;
Expand Down

0 comments on commit 35b48f8

Please sign in to comment.