From 31655be43bb6a1eda4f53a6d2a5d5a35c2a89232 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 7 May 2019 09:53:31 +0100 Subject: CSS: One inch is 96 css pixels. --- content/handlers/css/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/handlers/css') diff --git a/content/handlers/css/utils.c b/content/handlers/css/utils.c index dd669c629..cac777c1f 100644 --- a/content/handlers/css/utils.c +++ b/content/handlers/css/utils.c @@ -184,9 +184,9 @@ css_fixed nscss_len2px( case CSS_UNIT_PX: px_per_unit = F_1; break; - /* 1in = DPIpx */ + /* 1in = 96 CSS pixels */ case CSS_UNIT_IN: - px_per_unit = nscss_screen_dpi; + px_per_unit = F_96; break; /* 1in = 2.54cm => 1cm = (DPI/2.54)px */ case CSS_UNIT_CM: -- cgit v1.2.3