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 and axe312ger committed Nov 9, 2021
1 parent 9b99681 commit cc7902d
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 cc7902d

Please sign in to comment.