[Webkit-unassigned] [Bug 219770] SVG with embedded font triggers img.onload before font is available

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 1 06:40:33 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=219770

Markus <markus.hofer at combeenation.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus.hofer at combeenation.c
                   |                            |om

--- Comment #5 from Markus <markus.hofer at combeenation.com> ---
I am facing the exact same issue in a customer project and I am very curious how I can get around that problem.

As described in ticket 39059 adding a slight timeout in the onload callback makes it work. But using a magic number like "100 ms" seems to be very brittle to me.
Is it depending on the size of the embedded assets (font or image), network speed, etc...?

Does anyone know if the setTimeout workaround is reliable in a production environment or if there is a better workaround?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211201/24ac1870/attachment-0001.htm>


More information about the webkit-unassigned mailing list