-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Gatsby-plugin-image - GatsbyImage not displaying image in IE11 #30053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Actually object-fit polyfill is working but not in the right way. Looking forward to any solution here 👀 |
What do you mean by that @egemenu ? |
I think polyfill is working as well, as the image gets briefly displayed before it disappeared. I am not sure but I suspect it's the lazyload placeholder layer is not swapped out which prevent the image from displaying? |
If anyone needs a quick and dirty solution to this, I noticed removing 'position: relative' from the picture element displays the images in ie11. Doing this with CSS globally, targeting the class the polyfill adds is fairly trivial:
|
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
This didn't work actually. I guess cause I work with with modular css. So instead of adding like that, I've added it to head of html
But you're right, this is definitely a dirty solution. Still watching for any proper fix. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Just to make this unstale, the workaround works, but this should probably be changed in gatsby. It affects |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
This is still an issue. While it has to do with the object-fit polyfill, it may have more to do with gatsby's use of the polyfill. Currently, no |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Description
Upgrading from Gatsby-image to Gatsby-Plugin-Image, currently in IE11, it doesn't seem to be able to display the image with just a blank region. Didn't find any information on IE11 support or polyfill as this is quite new, assume this is a degradation?
Steps to reproduce
https://github.com/hazuremon/gatsby-bug-repro/
https://eager-saha-ba67b0.netlify.app/ (Open in IE11 will see a blank screen, while seeing an image in all other browsers)
Expected result
What should happen?
Display image
Actual result
Briefly shows the lazyload placeholder image before seeing a blank region.
Environment
IE11
Run
gatsby info --clipboard
in your project directory and paste the output here.The text was updated successfully, but these errors were encountered: