From 37a5b82f9e9195287125ac62b6fb5feafbbdedbe Mon Sep 17 00:00:00 2001 From: JanTang Date: Thu, 4 Jun 2026 18:59:10 +0800 Subject: [PATCH] Fix incorrect em unit calculation in CssBoxProperties --- Source/HtmlRenderer/Core/Dom/CssBoxProperties.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/HtmlRenderer/Core/Dom/CssBoxProperties.cs b/Source/HtmlRenderer/Core/Dom/CssBoxProperties.cs index e74671701..b4641e2a3 100644 --- a/Source/HtmlRenderer/Core/Dom/CssBoxProperties.cs +++ b/Source/HtmlRenderer/Core/Dom/CssBoxProperties.cs @@ -1432,7 +1432,7 @@ public double ActualBorderSpacingVertical /// public double GetEmHeight() { - return ActualFont.Height; + return ActualFont.Size * 96d / 72d; } ///