Skip to content

coder0107git/html2canvas-issue-2881

Repository files navigation

html2canvas-issue-2881

See niklasvh/html2canvas#2881

My Findings

I found that SVG1.svg and SVG2.svg work on both Chrome 106.0.5249.103 (64-bit) (Offical Build) (Windows 10) and Firefox 105.0.3 (64-bit) (Offical Build) (Windows 10) while SVG3.svg doesn't work on the exact same browsers. The problem in both browsers can be traced to right here.

test.html

The code that I am using to try to replicate the problem described in niklasvh/html2canvas#2881.

SVG*.svg

The SVGs provided by @jackturner4416 to replicate the issue

*-console*.txt

The browser console logs exported to a .txt file.

HTML2canvas_JS_PHP_code.php

A minimally modified version of the file HTML2canvas_JS_PHP_code.php that @jackturner4416 provided.