html2canvas: backport a fix for 'Passed-in canvas has height 0'
https://github.com/niklasvh/html2canvas/issues/2697#issuecomment-1742732104 https://github.com/niklasvh/html2canvas/issues/2697#issuecomment-1827394925
https://github.com/niklasvh/html2canvas/issues/2697#issuecomment-1742732104 https://github.com/niklasvh/html2canvas/issues/2697#issuecomment-1827394925