You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using gatsby-image/withIEPolyfill together with placeholder images (traced SVG in my case). The reason I use the polyfill is because I want to apply object-fit: contain to them. In Google Chrome everything looks fine. However, when testing in Internet Explorer 11 the Traced SVG is not styled correctly. It seems that object-fit: contain is not applied at all.
After further investigation discovered that this is indeed the case. See the following references:
Description
I am using
gatsby-image/withIEPolyfill
together with placeholder images (traced SVG in my case). The reason I use the polyfill is because I want to applyobject-fit: contain
to them. In Google Chrome everything looks fine. However, when testing in Internet Explorer 11 the Traced SVG is not styled correctly. It seems thatobject-fit: contain
is not applied at all.After further investigation discovered that this is indeed the case. See the following references:
gatsby/packages/gatsby-image/src/withIEPolyfill/index.js
Line 16 in 9fb521a
gatsby/packages/gatsby-image/src/withIEPolyfill/index.js
Line 28 in 9fb521a
Steps to reproduce
gatsby-image/withIEPolyfill
on an image and applyobjectFit="contain"
to it.Expected result
The special styles used to polyfill
object-fit
properties to IE 11 should not only be applied to the actual image but also to the placeholder image.Actual result
The special styles used to polyfill
object-fit
properties to IE 11 are only applied to the actual image.Environment
The text was updated successfully, but these errors were encountered: