Skip to content

Commit 13e94e8

Browse files
raresportanvladar
authored andcommitted
fix(gatsby-plugin-image): GatsbyImage not displaying image in IE11 (#33416)
(cherry picked from commit d708d91)
1 parent 3d9a702 commit 13e94e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/gatsby-plugin-image/src/gatsby-ssr.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export function onRenderBody({ setHeadComponents }: RenderBodyArgs): void {
2121
position: relative;
2222
overflow: hidden;
2323
}
24+
.gatsby-image-wrapper picture.object-fit-polyfill {
25+
position: static !important;
26+
}
2427
.gatsby-image-wrapper img {
2528
bottom: 0;
2629
height: 100%;

0 commit comments

Comments
 (0)