html2canvas icon indicating copy to clipboard operation
html2canvas copied to clipboard

fix renderBackgroundImage When receiving an image with 0 width or height

Open pana1990 opened this issue 2 years ago • 1 comments

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.

image

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

pana1990 avatar Jun 03 '22 07:06 pana1990

This is merged and should be closed

Sharcoux avatar Aug 31 '23 02:08 Sharcoux