I've encountered a bug with Font Awesome 5 Free SVG with JS version 5.11.2 on my web server. I have an unordered list (ul) with font-awesome markers included in a background image. The icons display correctly on desktop, but not on mobile devices (specifically testing on Android). Here is the code snippet and CSS:
<ul class="footer-info-contact">
<li id="telefonox">xxxxxx</li>
<li id="mailx">xxxxx</li>
</ul>
.footer-info-contact {
margin: 0;
padding: 0;
list-style: none;
}
.footer-info-contact li {
margin: 10px 0px;
padding: 0;
list-style: none;
padding-left: 32px;
}
.footer-info-contact li::before {
content: "";
font-size: 13px;
height: 45px;
margin-left: -32px;
width: 31px;
vertical-align: middle;
font-family: "Font Awesome 5 Free";
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
line-height: 45px;
font-weight: 900;
color: #FFF;
background-image: url('/img/chicco-bianco.png');
background-repeat: no-repeat;
background-size: contain;
text-align: center;
margin-right: 10px;
}
#telefonox::before {
content: "\f095";
}
#mailx::before {
content: "\f0e0";
}
The first screenshot shows the icons displaying correctly on desktop:
However, on mobile devices, the icons do not display:
How can this bug be resolved?
Version and implementation
Version: Font Awesome Free 5.11.2 SVG with JS
Browser and version
Firefox 70.0.1 (64 bit) on Windows 10 Pro 10.0.18362 build 18362 x64
Firefox 68.2.0 on Android 7.0 on Samsung Galaxy S6 Edge.
PS: Please excuse any errors in my English writing and speaking abilities.