Skip to content

Commit dee64c1

Browse files
authored
Fix glyph clipping in WebKit
See johnfactotum/foliate#177
1 parent b804995 commit dee64c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: paginator.js

+2
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ class View {
236236
position: 'static', border: '0', margin: '0',
237237
maxHeight: 'none', maxWidth: 'none',
238238
minHeight: 'none', minWidth: 'none',
239+
// fix glyph clipping in WebKit
240+
webkitLineBoxContain: 'block glyphs replaced',
239241
})
240242
Object.assign(doc.body.style, {
241243
maxHeight: 'none',

0 commit comments

Comments
 (0)