Firefox background-image disappear after switching tabs

十年热恋 提交于 2020-04-13 17:48:31

问题


I have some very weird issue with firefox while rendering background-images. I'm not sure if it's a firefox bug or simply my fault.

Every time I open my project site in firefox all background images are loaded and displayed correctly. After I switch to another tab and switch back after a while all background images disappeared. I checked the network analysis tab in the developer tools and all files are loaded correctly. Also in some situations parts of the images appear after I select some text over it. After parts of a second all the images show up. So I assume it's a rendering bug in firefox.

My images are implemented like:

background-image:url("path/to/image.png");
background-size:cover;
background-position:center center;

Is there a workaround for that bug? Is that even a bug? Can anyone confirm that? I searched the web and I couldn't find anything...

weird background-image bug? (image. not enough rep yet...)

来源:https://stackoverflow.com/questions/42366232/firefox-background-image-disappear-after-switching-tabs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!