qq15725 / modern-screenshot

📸 Quickly generate image from DOM node using HTML5 canvas and SVG
https://www.toolpkg.com/image/html-to-image
MIT License
457 stars 32 forks source link

Is there a way to reserve the position of scrollbar? #78

Open mahoushoujoarale opened 5 months ago

mahoushoujoarale commented 5 months ago

Steps To Reproduce

HTMLElement.cloneNode do not clone the position of scrollbar, I have a dom which should be located in the center of its parent, how should I do?

origin element: image

output image:

image
Error Message & Stack Trace

```txt ```

Your Environment