I have this problem when I try to color one letter in the text the character returns to the default shape in the font like in the image.
note that I use a custom font that behaves normally in most other browsers(in devices other than ios), and the default color should be transparent
the HTML
<p class="idhar-rule">ٱ<span class="idhar">لۡ</span>كِتَٰبُ</p>
css
.idhar {
color: #EB2A2D;
}
.idhar-rule {
color: transparent !important;
font-family: 'idharFont';
font-weight: 600;
font-size: 4.2vw;
}
other notes:
can someone tell me why this problem happens and how to fix it? thanks.
There is no solution to this. As seen here, this has been a reported bug since 2005: https://bugs.webkit.org/show_bug.cgi?id=6148 and has still yet to be solved. It affects all webkit based browsers (so all iOS). It seems that the newest iOS devices in europe ( https://www.theverge.com/2024/1/25/24050478/apple-ios-17-4-browser-engines-eu ) can download a non-webkit based browser.