Skip to content

Update CSS used to clip stretchy characters in CHTML. (mathjax/MathJax#3032)#1312

Merged
dpvc merged 1 commit into
developfrom
fix/long-stretchies
Jul 18, 2025
Merged

Update CSS used to clip stretchy characters in CHTML. (mathjax/MathJax#3032)#1312
dpvc merged 1 commit into
developfrom
fix/long-stretchies

Conversation

@dpvc
Copy link
Copy Markdown
Member

@dpvc dpvc commented Jul 17, 2025

The CSS for stretchy characters was not correct (it used the mjx-c clip-path, which includes some slop on all sides, and that means the stretchies aren't clipped well). This uses proper widths for horizontal stretchies and proper heights for vertical ones. It may be that we need to put a little slop in the stretch direction, but I haven't seen it needed yet.

Resolves issue mathjax/MathJax#3032.

@dpvc dpvc requested a review from zorkow July 17, 2025 16:32
@dpvc dpvc added this to the v4.0 milestone Jul 17, 2025
Copy link
Copy Markdown
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc dpvc merged commit e7ee4e0 into develop Jul 18, 2025
1 check passed
@dpvc dpvc deleted the fix/long-stretchies branch July 18, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants