fix: the rendering order of transform and clip effects
Rendering clip effects before rendering transform effects would lead to a wrong clip area.
Test plan (required)
reftest-diff
Closing issues
Fixes #2825
Can you elaborate? I don't understand the issue clearly.
Can you elaborate? I don't understand the issue clearly.
Please refer the demo(https://codepen.io/zeahan/pen/Vwrpdwm) in https://github.com/niklasvh/html2canvas/issues/2825. This demo shows the difference between the original HTML and the canvas rendered, whitch is a problem caused by the incorrect order of applying transform effect and clip effect.
This diagram shows the detailed reason:
Ok. I merged. Can be tested in @cantoo/html2canvas