Skip to content

Commit

Permalink
Fix glyph clipping in WebKit. Fixes johnfactotum#177
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-j committed Sep 28, 2019
1 parent a01aabb commit 54f8ee2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/assets/epub.js
Original file line number Diff line number Diff line change
Expand Up @@ -5280,6 +5280,10 @@ var Contents = function () {

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");
}

/**
Expand Down

0 comments on commit 54f8ee2

Please sign in to comment.