html2canvas
html2canvas copied to clipboard
fix renderBackgroundImage When receiving an image with 0 width or height
Summary
This PR fixes/implements the following bugs/features
- [ ] Fixed bug in background when receiving an image with 0 width or height
Explain the motivation for making this change. What existing problem does the pull request solve?
I get the following error when user zoom in some pages.
Test plan (required)
This bug is a little tricky to reproduce. It happens when user zoom in the browser and it only happens in some pages (i don't know that element html produces the error).
Closing issues
Fixes #2807
Notes : this pr is similar to https://github.com/niklasvh/html2canvas/pull/2409/files#diff-d002d2a3a6a450c487065f80a86beb8070d226d4608ba1c42d468148ad9c24fe
This is merged and should be closed