1.0.0-rc.5.1 • Published 4 years ago

html2canvas-ie-reapply-styles-fix v1.0.0-rc.5.1

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

html2canvas

This package is forked (git cloned into site/new/src/node_module_overrides/html2canvas/ folder) from html2canvas v1.0.0-rc.5 to fix problem when during document clone, IE falls into quirks mode and misunderstands styling info.

The solution is to change width of cloned iframe (html2canvas/src/dom/document-cloner.ts lines 450-454) so that IE re-applies/re-calculates styles. Inspired by solution here - https://stackoverflow.com/a/31800273/1067162

URL to original README.md - https://github.com/niklasvh/html2canvas/blob/master/README.md