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)

(cherry picked from commit d708d91)
  • Loading branch information
raresportan authored and vladar committed Nov 2, 2021
1 parent 3d9a702 commit 13e94e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gatsby-plugin-image/src/gatsby-ssr.tsx
Original file line number Diff line number Diff line change
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 13e94e8

Please sign in to comment.