Skip to content

Commit fdecd29

Browse files
committed
Fix incorrect em unit calculation in CssBoxProperties
1 parent c4257c4 commit fdecd29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/HtmlRenderer/Core/Dom/CssBoxProperties.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,8 +1432,8 @@ public double ActualBorderSpacingVertical
14321432
/// <returns></returns>
14331433
public double GetEmHeight()
14341434
{
1435-
return ActualFont.Height;
1436-
}
1435+
return ActualFont.Size * 96d / 72d;
1436+
}
14371437

14381438
/// <summary>
14391439
/// Ensures that the specified length is converted to pixels if necessary

0 commit comments

Comments
 (0)