Page MenuHomePhabricator

VisualEditor Math plugin displayed equation becomes jumbled during and after editing if using MathJax
Closed, DeclinedPublic

Description

Split off from bug 43058.

Editing the last equation at
https://www.mediawiki.org/wiki/VisualEditor:TestMath?veaction=edit

if you actually make a change to the text of the equation the displayed equation becomes very jumbled. Any vertical positioning is lost, and text from different lines are overlaid on top of each other.

This happens with Chrome on a Mac.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=52499

Details

Reference
bz61497

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:02 AM
bzimport added a project: Math.
bzimport set Reference to bz61497.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 15234
Screenshot of garbled output

This is a screenshot of the type of output obtained. You need MathJax on and image will become garbled as soon as the formula is edited with the VisualEditor formulae editing beta feature.

Attached:

VE_MathJax_Bug.png (268×518 px, 47 KB)

The problem seems to be a clash of CSS styling. MathJax makes heavy use of position: absolute, position: relative and setting the top, and left properties eg

<span style="position: absolute; clip: rect(1.501em 1000.003em 2.347em -0.518em); top: -2.145em; left: 0.003em;">...</span>

yet this is all rendered to nothing by the CSS rule

.ve-ce-protectedNode, .ve-ce-protectedNode * {

position: relative !important;
top: 0 !important;
left: 0 !important;
bottom: 0 !important;
right: 0 !important;
...

}

If you comment out these css properties the MathJax displays OK.

Physikerwelt claimed this task.
Physikerwelt subscribed.

MathJax will be removed T99369