asset-share-commons
asset-share-commons copied to clipboard
Some CSS styles are not supported in the Internet Explorer browser
The object-fit and object-position CSS styles used to render assets within the asset share page and on the asset details page are not supported in the Internet Explorer browser, and as a result assets are stretched horizontally within this browser, negatively impacting the user experience.
Do you have equivalent styles that are supported by the ie browsers? Thanks
I'll investigate an alternative CSS solution and report back on this issue. Thanks for the quick response!
any update on this one? It's effecting us as well...
@harincar do you have suggestions on how to adjust the css on how to achieve Modern cross-browser support? Unfortunately I don’t have IE to investigate.
Has anyone tried to open asset-share-commons page within editor mode over IE? An error is thrown that it can not be opened in iframe.. Anyone has the same problem?
@artdirk did you manage to progress at all with this?
@josephrignanese, I unfortunately have not yet made any progress with this. The audience for the first team that went live with an Asset Share doesn't use IE, so we've been able to defer work on this for now.
Hi @davidjgonzalez and @josephrignanese, I did some research on this and discovered the following:
- As of 10/18/2017, object-fit is supported in Edge 16
- If the image is specified via the background-image CSS rather than via the image's src attribute, the following code works in IE (it also worked in Firefox when I tested it):
<img class="cmp-image--card" style='background-position: center; background-image: url("/content/dam/old-navy/imagery/selects/2018/spring/0305_Block_SpringBreak/Spr18253_0305_BabyMoon_Mat/Retouched/Spr18253_0305_BabyMoon_Mat_01_v0597_d2.psd/_jcr_content/renditions/cq5dam.thumbnail.319.319.png"); background-repeat: no-repeat; background-size: contain;'>
If people cannot easily update IE for their employees or customers, updating the core Asset Share Commons code to set the image as a background image and apply the above styles to the .card.ui .image img class definition looks like it solves the IE problem.
However, I'm not sure if this will introduce other changes or issues because there may be other code that keys off of the image's src attribute.