Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/HtmlRenderer/Core/Dom/CssBoxProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ public double ActualBorderSpacingVertical
/// <returns></returns>
public double GetEmHeight()
{
return ActualFont.Height;
return ActualFont.Size * 96d / 72d;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we hard-code a DPI assumption?

The correct answer at this layer should probably be ActualFont.Size.

}

/// <summary>
Expand Down