Skip to content

Assistive MML displaced when using text-indent #3348

Open
@LukeNK

Description

@LukeNK

This is one of my first issues, so if I make any mistakes, please let me know.

Issue Summary

<mjx-assistive-mml> and the child element <math> are offset based on the value of text-indent on Microsoft Edge, Windows 11.

Steps to Reproduce:

  1. Have a paragraph element with the style text-indent set to a number

Image

The <mjx-assistive-mml> should be perfectly on the displayed math, but this time it is offset by the value of text-indent. Moreover, if you try to resize the page close to the equation itself, it will trigger the x-overflow scroll bar:

Image

Technical details:

  • MathJax Version: 3.2.3
  • Client OS: Window 11 Home 23H2 build 22631.5039
  • Browser: Microsoft Edge version 134.0.3124.83

I am using the following MathJax configuration:

window.MathJax = {
    tex: {
        tags: 'ams',
        inlineMath: [['$', '$']],
    }
};

and loading MathJax via

(() => {
    var script = document.createElement('script');
    script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js';
    script.async = true;
    document.head.appendChild(script);
})();

Supporting information:

This problem also appears when I use tex-svg.js. I tried disabling stuff with the following options:

    options: {
        enableMenu: false,
        enableAssistiveMml: false,
        assistiveMml: false,
    }

JSbin file: https://jsbin.com/bazotuj

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundv3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions