-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox 55: no img tag render #194
Comments
Thanks, good find. This might be issue https://bugzilla.mozilla.org/show_bug.cgi?id=789249 resurfacing in different form (not background this time). However that should be checked on the bug tracker. Would you be open to opening an issue there? |
Even with preload it doesn't work here.
https://jsfiddle.net/pskfb/dhvLvb6q/ perhaps I have to find how to extract the foreign object from inside the libraray before the canvas draw, so that we can pinpoint to firefox the bug. |
Having the same issue here. Is it still a Firefox issue? |
I haven't put any time into that, but it seems that it started breaking with the new Firefox version. The test under ./test/manualIntegrationTestForWebkit.html has worked up to the previous version, now the green image is not rendered. Unless @Kuranes has filed a report with Firefox, it might be a good option to try this now. Happy for any help trying to setup a minimal test case (not using this library) to demo this on the bug tracker and raising this with the Firefox people. |
For now have two samples showing bug cases on Edge and Firefox, but not clear enough imho for bug report I try to go for full explanation and repro steps, but didn't finished. Caught full time and forgot to follow up on that, but would love code review or fiddle fork with better/clearer repro ? |
After I change the rasterizeHTML version from 1.2.4 to 1.2.2, firefox 55 rendered <img ... /> corectly |
Thanks @insekkei, but I can't reproduce it looking at ./test/manualIntegrationTestForWebkit.html when I checkout tag 1.2.2 locally (while Chrome still looks good). |
@Kuranes Sorry for the long break. I've fiddled with your example, and managed to come up with something close to minimal, that also fixed an issue I had with the image not being properly loaded (unsure whether it's Firefox or jsfiddle eating the self closing "/"): https://jsfiddle.net/7v2ue7r2/12/ I'd be grateful if you could raise this with Firefox. |
It looks fine for me on 58 & 59. Can somebody confirm? |
I still have some issues (potentially related) with Firefox, mainly when Not: I am not using external fonts, this is with system fonts. |
I would be interesting to know why 1.3.0 looks less reliable. One hunch, relying on native promises in the latest versions (contrary to the homegrown promises before) might have changed the timing aspect. Even though this library will inline all external references, Firefox especially still has an asynchronous code path involved when rendering inlined items. Adding an additional wait can make this a bit better, but don't guarantee a perfect solution. HTML doesn't offer events to listen for all those resources being rendered. |
Hey @cburgmer, I have a wrapping solution to adjust a number of issues (including this). Some personal notes:
I am using |
Here's a simple clear repro https://jsfiddle.net/pskfb/dhvLvb6q/
The text was updated successfully, but these errors were encountered: