Skip to content

Firefox still breaks LaTeX rendering #6553

Closed
@moble

Description

@moble

Using Firefox 111.0.1 — the most recent as of this writing — LaTeX rendering still fails to set the box size correctly. (I first tried this through the Julia interface, then Python, and now Javascript since that's the (descending) order in which I know those languages; the issue is the same in all.)

There seems to have been an attempted fix in this PR, but I guess it doesn't work now. In fact, that PR appears to have been incorporated into plotly-2.6.0, but even if I load that version it doesn't seem to work. That PR suggested that it would be a workaround for #5374.

Here is a codepen test of the (correctly escaped) example from the documentation, along with what the relevant part looks like in Chrome

ChromeRendering

and what it looks like in Firefox

FirefoxRendering

Note that the legend entries get cut off in Firefox. Looking at the source in Developer Tools, the full expressions are in there. In fact, I can extract the svg elements, add an xmlns, and view the expressions on their own, and they render properly in Firefox. So it evidently is a problem with the g containing the svg.

Is there at least a workaround? I tried adjusting layout.legend.entrywidth, but that didn't seem to have any effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions