mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Set display inline for font metrics test img
This commit is contained in:
parent
6020386bbe
commit
3603d2df85
@ -38,6 +38,7 @@ export class FontMetrics {
|
||||
img.style.margin = '0';
|
||||
img.style.padding = '0';
|
||||
img.style.verticalAlign = 'baseline';
|
||||
img.style.display = 'inline';
|
||||
|
||||
span.style.fontFamily = fontFamily;
|
||||
span.style.fontSize = fontSize;
|
||||
|
@ -14,6 +14,10 @@
|
||||
line-height: 1vw;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.medium {
|
||||
font-size: 18px;
|
||||
line-height: 2vw;
|
||||
|
Loading…
Reference in New Issue
Block a user