Skip to content

Commit 807a123

Browse files
authored
Merge pull request #722 from mathjax/webkit-fix
Work around WebKit bug with CHTML characters. (mathjax/MathJax#2435)
2 parents 3adc221 + 217eaae commit 807a123

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ts/output/chtml/Wrappers/TextNode.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ CommonTextNodeMixin<CHTMLConstructor<any, any, any>>(CHTMLWrapper) {
5858
'mjx-utext': {
5959
display: 'inline-block',
6060
padding: '.75em 0 .2em 0'
61+
},
62+
//
63+
// WebKit-specific CSS to handle bug with clipped characters.
64+
// (test found at https://browserstrangeness.bitbucket.io/css_hacks.html#safari)
65+
//
66+
'_::-webkit-full-page-media, _:future, :root mjx-container': {
67+
'will-change': 'opacity'
6168
}
6269
};
6370

0 commit comments

Comments
 (0)