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

Temporary fix to help improve rendering of graphs with Mathjax on Firefox v82 and higher #5993

Merged
merged 5 commits into from
Oct 26, 2021

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Oct 20, 2021

Addressing #5374.
Guard against bug present in Firefox v82 (and higher) https://bugzilla.mozilla.org/show_bug.cgi?id=1709251
so that incorrect values of getBoundingClientRect do not totally confuse rendering pipeline.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels Oct 20, 2021
@archmoj archmoj added this to the v2.6.0 milestone Oct 20, 2021
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

Seems like a reasonable temporary fix 💃

I'll note that at one time we had quite a few nested <svg> elements, mainly to get their contents to clip, and by now we've generally (entirely aside from this?) removed them in favor of <g> with <clipPath>. So a better long-term solution may be to, instead of pulling in the whole <svg> created by MathJax, just pull its contents into the <g>. There will likely be scaling or other issues that need to be translated if we do this, but in the end it should be simpler to render, and more robust against bugs like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants