We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4257c4 commit 135db3eCopy full SHA for 135db3e
1 file changed
Source/HtmlRenderer/Core/Dom/CssBoxProperties.cs
@@ -1432,14 +1432,14 @@ public double ActualBorderSpacingVertical
1432
/// <returns></returns>
1433
public double GetEmHeight()
1434
{
1435
- return ActualFont.Height;
+ return ActualFont.Size * 96d / 72d;
1436
}
1437
1438
- /// <summary>
1439
- /// Ensures that the specified length is converted to pixels if necessary
1440
- /// </summary>
1441
- /// <param name="length"></param>
1442
- protected string NoEms(string length)
+ /// <summary>
+ /// Ensures that the specified length is converted to pixels if necessary
+ /// </summary>
+ /// <param name="length"></param>
+ protected string NoEms(string length)
1443
1444
var len = new CssLength(length);
1445
if (len.Unit == CssUnit.Ems)
0 commit comments