When reading CSS sizes specified in pt, in, cm, mm, pc, THTMLViewer uses Screen.PixelsPerInch to convert sizes to pixels.
But when reading CSS sizes specified in px, Screen.PixelsPerInch is ignored, pixels are read as they are.
So, if Screen.PixelsPerInch <> 96, sizes are inconsistent.
But HTML assumes that pixels have 96 dpi.
Suggested change in function LengthConv:
...
else if U = 'px' then
V := V * Screen.PixelsPerInch / 96
...
However, this is not a complete fix. HTML may contain pixel sizes not only here, but also in other places (table CellPadding, Border, etc.)
When reading CSS sizes specified in pt, in, cm, mm, pc, THTMLViewer uses Screen.PixelsPerInch to convert sizes to pixels. But when reading CSS sizes specified in px, Screen.PixelsPerInch is ignored, pixels are read as they are. So, if Screen.PixelsPerInch <> 96, sizes are inconsistent.
But HTML assumes that pixels have 96 dpi.
Suggested change in function LengthConv:
However, this is not a complete fix. HTML may contain pixel sizes not only here, but also in other places (table CellPadding, Border, etc.)