From dee64c19bb1a8922a7f3d060875e927e24eba5b0 Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Tue, 21 Feb 2023 08:08:15 +0000 Subject: [PATCH] Fix glyph clipping in WebKit See https://github.com/johnfactotum/foliate/issues/177 --- paginator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paginator.js b/paginator.js index 3f30095..87cee8d 100644 --- a/paginator.js +++ b/paginator.js @@ -236,6 +236,8 @@ class View { position: 'static', border: '0', margin: '0', maxHeight: 'none', maxWidth: 'none', minHeight: 'none', minWidth: 'none', + // fix glyph clipping in WebKit + webkitLineBoxContain: 'block glyphs replaced', }) Object.assign(doc.body.style, { maxHeight: 'none',