Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overrightarrow rendering problem #3259

Open
dl7 opened this issue Jul 12, 2024 · 1 comment
Open

Overrightarrow rendering problem #3259

dl7 opened this issue Jul 12, 2024 · 1 comment
Labels
Accepted Issue has been reproduced by MathJax team Browser Bug

Comments

@dl7
Copy link

dl7 commented Jul 12, 2024

Issue Summary

There is already a closed issue that describes the problem in detail, but the bug still exists in the latest version (3.2.2)

Steps to Reproduce:

  1. Open this codepen
  2. In Chrome arrow extender is slightly offset (this is CHTML rendering):
    1

In SVG rendering there is no such problem:
2

The visibility of the shift depends on the font size or page zoom. By increasing the font size or zoom, you can get rid of the error.
3

Technical details:

  • MathJax Version: 3.2.2
  • Client OS: (e.g., Windows 10)
  • Browser: (Chrome 126.0.6478.127; Firefox 128.0)

I am loading MathJax via

<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
@dpvc
Copy link
Member

dpvc commented Jul 22, 2024

These are browser rendering problems. As you have shown, a zoomed version renders properly, meaning the browser is not rendering the original size correctly. That is due to pixel rounding that is being done differently for the stretchy piece from the arrow head at the end. Both are positioned the same by MathJax, but rendered differently by the browser. The fact that you can get different results by zooming shows that this is not a MathJax positioning error, as the same exact positioning acts differently at different magnifications. Indeed, the extender is sometimes too low and sometimes too high depending on the magnification, so MathJax won't be able to compensate for this effect.

@dpvc dpvc added Accepted Issue has been reproduced by MathJax team Browser Bug labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Browser Bug
Projects
None yet
Development

No branches or pull requests

2 participants