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

Chrome latest version: Text child nodes of <details> are invisible between two MathJax containers #3315

Open
hbghlyj opened this issue Dec 11, 2024 · 4 comments

Comments

@hbghlyj
Copy link

hbghlyj commented Dec 11, 2024

Issue Summary

Using Chrome 131.0.6778.140, text child nodes of <details> are invisible between two MathJax containers.

Steps to Reproduce:

  1. Goto https://jsbin.com/xunedamilu/edit?html,output
  2. Click "Details" to expand it
  3. Using Chrome, some text nodes are invisible:
    image
  4. Repeat using Firefox, the output is normal:
    image
  5. Replace "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js" with "https://cdn.jsdelivr.net/npm/[email protected]/tex-svg.js" and repeat.

Technical details:

  • MathJax Version: 3.2.2 and 4.0.0-beta.7
  • Client OS: Windows 11
  • Browser: Chrome 131.0.6778.140 (latest version)
@hbghlyj
Copy link
Author

hbghlyj commented Dec 11, 2024

The text nodes are present in DOM, but invisible.
e.g. the text node with content “, there are two solutions to ” between two MathJax containers is invisible:
image

@hbghlyj hbghlyj changed the title Chrome latest version: Text are missing in <details> Chrome latest version: Text are missing in <details> between two MathJax containers Dec 11, 2024
@hbghlyj hbghlyj changed the title Chrome latest version: Text are missing in <details> between two MathJax containers Chrome latest version: Text are invisible in <details> between two MathJax containers Dec 11, 2024
@hbghlyj
Copy link
Author

hbghlyj commented Dec 11, 2024

Maybe related to "Improvements to <details> and <summary>" in Chrome 131: https://developer.chrome.com/blog/new-in-chrome-131#styling-details

@hbghlyj hbghlyj changed the title Chrome latest version: Text are invisible in <details> between two MathJax containers Chrome latest version: Text child nodes of <details> are invisible between two MathJax containers Dec 11, 2024
@marcobaez-zybooks
Copy link

marcobaez-zybooks commented Dec 11, 2024

Seeing the same problem on MacOS and Chrome v130/v132 (Beta). Created this super simple example:
https://codepen.io/marcobaez21/pen/raBMMNW

@marcobaez-zybooks
Copy link

marcobaez-zybooks commented Dec 11, 2024

@hbghlyj Have you also reported this to google chrome issues? Thank you!

Edit: Reported the issue here: https://issues.chromium.org/issues/383593255

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

No branches or pull requests

2 participants