diff --git a/src/render/font-metrics.ts b/src/render/font-metrics.ts index f40555c..828e4ee 100644 --- a/src/render/font-metrics.ts +++ b/src/render/font-metrics.ts @@ -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; diff --git a/tests/reftests/text/text.html b/tests/reftests/text/text.html index 66e4021..e067e0d 100644 --- a/tests/reftests/text/text.html +++ b/tests/reftests/text/text.html @@ -14,6 +14,10 @@ line-height: 1vw; } + img { + display: block; + } + .medium { font-size: 18px; line-height: 2vw;