Set display inline for font metrics test img

This commit is contained in:
Ryan McCahan 2022-02-17 19:04:19 -07:00
parent 6020386bbe
commit 3603d2df85
2 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,7 @@ export class FontMetrics {
img.style.margin = '0'; img.style.margin = '0';
img.style.padding = '0'; img.style.padding = '0';
img.style.verticalAlign = 'baseline'; img.style.verticalAlign = 'baseline';
img.style.display = 'inline';
span.style.fontFamily = fontFamily; span.style.fontFamily = fontFamily;
span.style.fontSize = fontSize; span.style.fontSize = fontSize;

View File

@ -14,6 +14,10 @@
line-height: 1vw; line-height: 1vw;
} }
img {
display: block;
}
.medium { .medium {
font-size: 18px; font-size: 18px;
line-height: 2vw; line-height: 2vw;