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
  • Loading branch information
raresportan authored Oct 29, 2021
1 parent 00bf044 commit d708d91
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 d708d91

Please sign in to comment.