-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
v3, SVG: \smash leads to 0 height #2605
Comments
It looks like 0-height SVGs are not displayed, as you probably noted. We should probably make a small minimum height (and width) to prevent that. |
I don't quite understand. Why would the SVG have height 0? I'd expect the output to appear identical to just \mathbb{R}^2 (as in CHTML). |
The height is 0 because you asked for the height to be 0 (that is what The CSS for the |
Right, but I was thinking of this as "internally"
Ah! I had not thought overflow works this way with SVG, especially not with the viewbox height. Thanks for explaining! |
I have made a PR to correct the problem of having a 0 height. |
Don't let height of final SVG be 0 (mathjax/MathJax#2605)
This persists for me (on the amermathsoc branch) on both Blink and WebKit based browsers (Gecko is fine). Since the height was a very small ex value I tried manually changing it to 1px - this seemed to fix it. So it's possibly a rounding issue. |
As a temporary workaround: |
Thanks for the work-around. I think that may be the easiest way to handle it (using a selector that is specific to the MathJax output). |
E.g.,
\smash {\mathbb{R}^2}
renders to an SVG with height 0 (and similar viewport).The text was updated successfully, but these errors were encountered: