Skip to content

Commit

Permalink
Merge pull request #722 from mathjax/webkit-fix
Browse files Browse the repository at this point in the history
Work around WebKit bug with CHTML characters.  (mathjax/MathJax#2435)
  • Loading branch information
dpvc committed Jun 10, 2021
2 parents 3adc221 + 217eaae commit 807a123
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ts/output/chtml/Wrappers/TextNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ CommonTextNodeMixin<CHTMLConstructor<any, any, any>>(CHTMLWrapper) {
'mjx-utext': {
display: 'inline-block',
padding: '.75em 0 .2em 0'
},
//
// WebKit-specific CSS to handle bug with clipped characters.
// (test found at https://browserstrangeness.bitbucket.io/css_hacks.html#safari)
//
'_::-webkit-full-page-media, _:future, :root mjx-container': {
'will-change': 'opacity'
}
};

Expand Down

0 comments on commit 807a123

Please sign in to comment.