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

white dots are appearing once MathJax has converted latex to html #3001

Open
cjohn001 opened this issue Feb 17, 2023 · 5 comments
Open

white dots are appearing once MathJax has converted latex to html #3001

cjohn001 opened this issue Feb 17, 2023 · 5 comments
Labels
Accepted Issue has been reproduced by MathJax team

Comments

@cjohn001
Copy link

cjohn001 commented Feb 17, 2023

I am current working with MathJax is 1.0.0-beta.1. My webpage has a transparent background as I am using it as a webview overlay in a Nativescript application. I am seeing white points on the top of the page.

The problem is, that divs are generate with a size of 1px X 1px and a background color of white. The div has class="MJX_LiveRegion" set. Would it be possible to set style="background-color: transparent" ?

Bildschirm­foto 2023-02-17 um 01 24 47

@cjohn001 cjohn001 changed the title when using a relative path with '../' in the path than a white dot is drawn on first line of generated html page. white dots are appearing once MathJax has converted latex to html Feb 17, 2023
@cjohn001
Copy link
Author

cjohn001 commented Feb 17, 2023

Here is the temporary workaround. Put this into the page header

 <style>
         .MJX_LiveRegion {
            background-color: transparent !important;
         }
        .MJX_HoverRegion{
           background-color: transparent !important;
         }
         .MJX_ToolTip{
            background-color: transparent !important;
        }
  </style>

@dpvc
Copy link
Member

dpvc commented Feb 20, 2023

@zorkow, can you look into this? Can the unopened divs either have no background color (and put the background white on .MJX_LiveRegion.MJX_LiveRegion_Show for example), or be 0px wide and tall initially so they don't cause the white pixels as reported above?

@dpvc dpvc added the Accepted Issue has been reproduced by MathJax team label Feb 20, 2023
@soegaard
Copy link

soegaard commented Mar 4, 2024

This issue was closed without reference to a specific commit handling the problem.

I am seeing the same issue:

image image

Is the fix in version 4?

@dpvc
Copy link
Member

dpvc commented Mar 4, 2024

The issue is still open. Issue #3026 was closed by the issue author, as it was marked as a duplicate of this one.

Yes, the fix is in v4. Once v4 is out, we may back port some commits to v3.

@soegaard
Copy link

soegaard commented Mar 4, 2024

I confused the two. Good to hear it is fixed in version 4.

The workaround posted in this thread worked.

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
Projects
None yet
Development

No branches or pull requests

3 participants