The font-size and line-height of the text in the visual editor and the 2017 wikitext editor has not the same as the parser output shown on the actual page when using the Vector skin.
The class the applies the font-size and line-height values used by the text shown on page is vector-body, which is applied to the #bodyContent element.
The issue is that the overlay that contains the preview when using the visual editor and/or the 2017 wikitext editor is located outside of this element, so the correct styles are not applied (although the rule for font-size is also added by the ve-ui-overlay-global class).
The current preview | The preview with the style corrected | The actual page |