Skip to content

Commit

Permalink
Merge pull request #452 from mathjax/issue2311
Browse files Browse the repository at this point in the history
Improve multi-glyph stretchy characters in Chrome.  (mathjax/MathJax#2311)
  • Loading branch information
dpvc authored Mar 30, 2020
2 parents 309fa07 + 12f5622 commit 32483f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ts/output/chtml/Wrappers/mo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export class CHTMLmo<N, T, D> extends CommonMoMixin<CHTMLConstructor<any, any, a
width: 0
},
'mjx-stretchy-h > * > mjx-c': {
display: 'inline-block'
display: 'inline-block',
transform: 'scalex(1.0000001)' // improves blink positioning
},
'mjx-stretchy-h > * > mjx-c::before': {
padding: '.001em 0', // for blink
Expand Down Expand Up @@ -86,7 +87,7 @@ export class CHTMLmo<N, T, D> extends CommonMoMixin<CHTMLConstructor<any, any, a
display: 'block'
},
'mjx-stretchy-v > * > mjx-c': {
transform: 'scale(1)', // improves Firefox positioning
transform: 'scaley(1.0000001)', // improves Firefox and blink positioning
'transform-origin': 'left center',
overflow: 'hidden'
},
Expand Down

0 comments on commit 32483f6

Please sign in to comment.