From 5edf4c3bf698e710cfa73568df939cdc9401c6d7 Mon Sep 17 00:00:00 2001 From: daniel-j Date: Sat, 28 Sep 2019 22:32:58 +0200 Subject: [PATCH] Fix glyph clipping in WebKit. Fixes #983 --- src/contents.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/contents.js b/src/contents.js index be6e5fc..77b8594 100644 --- a/src/contents.js +++ b/src/contents.js @@ -1044,6 +1044,10 @@ class Contents { this.css(COLUMN_GAP, gap+"px"); this.css(COLUMN_WIDTH, columnWidth+"px"); + + // Fix glyph clipping in WebKit + // https://github.com/futurepress/epub.js/issues/983 + this.css("-webkit-line-box-contain", "block glyphs replaced"); } /**