html2canvas
html2canvas copied to clipboard
textBaseline is incorrect when renderTextNode
before html2canvas
after html2canvas
This will make my style not horizontally centered
it just a example to show the problem, and it exist everywhere
+1 problem exist with flex center
display: flex;
align-items: center;
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.