2
$\begingroup$

Screenshots of MathJax text,

CH3-CHOH ->[H2SO4][\Delta] CH2=CH2
  • while editing (lower stuffs are cropped):

enter image description here

  • after editing, on post page (both stuffs are cropped):

enter image description here


But, the problem isn't with inline, $\ce{A ->[C][\Delta]B}$

How to solve this?

(Browser: Firefox 78, OS: Windows)

$\endgroup$
8
  • 1
    $\begingroup$ This is a browser-specific issue. What you report only happens with the current builds of Chromium-based browsers. On Firefox 78 both $\ce{H2SO4}$ and $\Delta$ are cropped, and MS Edge surprisingly renders MathJax correctly without cropping. Long story short, you might want to attach your screenshot with the description of the system as different users with different browsers will see your equation differently. $\endgroup$
    – andselisk Mod
    Jul 12, 2020 at 10:51
  • $\begingroup$ @andselisk: I'm using firefox 78. Also, when I click the edit button, the H2SO4 is fully visible in reflector below textarea, but when I save edits, then on post page, it is cropped. edit (after you edited): that's good idea. $\endgroup$ Jul 12, 2020 at 10:57
  • $\begingroup$ By the way, why do you fixate on Δ? It looks like every character is cropped and there is no relation with the Greek symbols, e.g. consider this MWE: \ce{->[][L]}: $$\ce{->[][L]}$$ $\endgroup$
    – andselisk Mod
    Jul 12, 2020 at 11:01
  • $\begingroup$ Is this really a problem that could be fixed by SE? To me it looks like these are third party shortcomings. Can you also add your MathJax settings please. Maybe this is a render issue. $\endgroup$ Jul 12, 2020 at 14:05
  • $\begingroup$ Just adding this comment for the viewers to see how it renders in their browsers: $$\ce{CH3-CHOH ->[H2SO4][\Delta] CH2=CH2}$$ $\endgroup$ Jul 12, 2020 at 14:25
  • 1
    $\begingroup$ @Martin - マーチン: 1) I don't know if this is problem with SE or not, but to confirm it, I posted this up. 2) MathJax settings (hearing it for the first time) ? Okay, I'll add that. Btw, if you're on Firefox, you can direct me there. $\endgroup$ Jul 12, 2020 at 14:35
  • $\begingroup$ @andselisk, Just checked in Edge v83 (newest with "swirling" icon in blue shades) and in Chrome v83, my comment looks same in all of them (lower stuffs cropped). $\endgroup$ Jul 13, 2020 at 7:07
  • $\begingroup$ @RahulVerma I meant the old MS Edge before it became another Chromium. $\endgroup$
    – andselisk Mod
    Jul 13, 2020 at 7:20

1 Answer 1

5
$\begingroup$

It looks like StackExchange has (apparently recently) added CSS that is causing the problem. In their primary.css file is the declaration

.MathJax_SVG_Display, .MathJax_Display {
    overflow: auto hidden;
}

that causes anything outside the vertical space of the original expression to be hidden. The sizing of the expressions is subject to slight variation depending on the rounding of the sizes to the screen pixels, antialiasing, and other factors. That is what is causing the clipping for you. This is an error in the StackExchange CSS, so probably needs to be reported to them as a bug (I'm not sure what would have prompted them to add this CSS, but there is probably something they are trying to prevent by using it).

It would be possible to use something like TamperMonkey to override that CSS, if you wanted. Fortunately, however, the CSS only affects HTML-CSS output and SVG output, so if you switch to CommonHTML output, the CSS will not affect that, and the zooming will work properly. (You can switch renderers using the MathJax contextual menu, and selecting Math Settings, then Math Renderer).

This was reported here as well, but for a different reason.

$\endgroup$
1
  • $\begingroup$ I'm amazed to see your findings! $\endgroup$ Jul 13, 2020 at 17:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .