Skip to content

Commit 0d5f213

Browse files
authored
Merge pull request #1375 from mathjax/fix/safari-accents
Fix vector arrow positioning for Safari
2 parents 27c47f3 + 82eab14 commit 0d5f213

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ts/core/MmlTree/MmlNodes/mo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,9 @@ export class MmlMo extends AbstractMmlTokenNode {
552552
this.getProperty('mathaccent') !== undefined ||
553553
!parent ||
554554
!parent.isKind('munderover')
555-
)
555+
) {
556556
return;
557+
}
557558
const [base, under, over] = parent.childNodes;
558559
if (base.isEmbellished && base.coreMO() === this) return;
559560
const isUnder = !!(under && under.isEmbellished && under.coreMO() === this);

ts/output/chtml/FontData.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ export class ChtmlFontData extends FontData<
636636
if (options.oc) {
637637
styles[selector + '[noic]'] = { 'padding-right': this.em(data[2]) };
638638
}
639-
this.checkCombiningChar(options, styles[selector]);
639+
this.checkCombiningChar(options, styles[selector] as StyleJsonData);
640640
}
641641

642642
/**
@@ -656,6 +656,10 @@ export class ChtmlFontData extends FontData<
656656
pad.pop();
657657
}
658658
css.padding = pad.join(' ');
659+
if (css.width === '0' && options.dx) {
660+
css.width = this.em(2 * options.dx);
661+
css['margin-left'] = '-' + css.width;
662+
}
659663
}
660664

661665
/***********************************************************************/

0 commit comments

Comments
 (0)