From f7d51a083272d1167abe497426965101f7078504 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 17 Jul 2025 12:23:49 -0400 Subject: [PATCH] Update CSS used to clip stretchy characters in CHTML. (mathjax/MathJax#3032) --- ts/output/chtml.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ts/output/chtml.ts b/ts/output/chtml.ts index a25ab206d..68bf483c0 100644 --- a/ts/output/chtml.ts +++ b/ts/output/chtml.ts @@ -108,12 +108,16 @@ export class CHTML extends CommonOutputJax< 'mjx-mn > mjx-c', 'mjx-ms > mjx-c', 'mjx-mtext > mjx-c', - 'mjx-stretchy-h', - 'mjx-stretchy-v', ].join(', ')]: { 'clip-path': 'padding-box xywh(-1em -2px calc(100% + 2em) calc(100% + 4px))', }, + 'mjx-stretchy-h': { + 'clip-path': 'padding-box xywh(0 -2px 100% calc(100% + 4px))', + }, + 'mjx-stretchy-v': { + 'clip-path': 'padding-box xywh(-2px 0 calc(100% + 4px) 100%)', + }, 'mjx-container [space="1"]': { 'margin-left': '.111em' }, 'mjx-container [space="2"]': { 'margin-left': '.167em' },