1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Merge pull request #985 from daniel-j/fix-glyph-clipping

Fix glyph clipping in WebKit. Fixes #983
This commit is contained in:
Fred Chasen 2019-11-07 09:42:57 -08:00 committed by GitHub
commit 91f1e45d36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1041,6 +1041,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");
}
/**