Skip to content

Commit e7ee4e0

Browse files
authored
Merge pull request #1312 from mathjax/fix/long-stretchies
Update CSS used to clip stretchy characters in CHTML. (mathjax/MathJax#3032)
2 parents bc7a4ac + f7d51a0 commit e7ee4e0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ts/output/chtml.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,16 @@ export class CHTML<N, T, D> extends CommonOutputJax<
108108
'mjx-mn > mjx-c',
109109
'mjx-ms > mjx-c',
110110
'mjx-mtext > mjx-c',
111-
'mjx-stretchy-h',
112-
'mjx-stretchy-v',
113111
].join(', ')]: {
114112
'clip-path':
115113
'padding-box xywh(-1em -2px calc(100% + 2em) calc(100% + 4px))',
116114
},
115+
'mjx-stretchy-h': {
116+
'clip-path': 'padding-box xywh(0 -2px 100% calc(100% + 4px))',
117+
},
118+
'mjx-stretchy-v': {
119+
'clip-path': 'padding-box xywh(-2px 0 calc(100% + 4px) 100%)',
120+
},
117121

118122
'mjx-container [space="1"]': { 'margin-left': '.111em' },
119123
'mjx-container [space="2"]': { 'margin-left': '.167em' },

0 commit comments

Comments
 (0)