html2canvas icon indicating copy to clipboard operation
html2canvas copied to clipboard

textBaseline is incorrect when renderTextNode

Open failedUser opened this issue 5 years ago • 3 comments

before html2canvas image

after html2canvas image

This will make my style not horizontally centered

failedUser avatar May 17 '19 03:05 failedUser

it just a example to show the problem, and it exist everywhere

failedUser avatar May 17 '19 03:05 failedUser

+1 problem exist with flex center

display: flex;
align-items: center;

image image

obcdnico avatar Apr 04 '22 20:04 obcdnico

My project uses HTML2canvas. When changing styles and layout on the project, I had the same problem. During the day I debugged what the difference was and found it. The problem was in the global style :

img {
    display: block
}

If write inline then everything works correctly.

Bencute avatar Feb 24 '24 16:02 Bencute