Last modified: 2014-06-09 06:31:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66572, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64572 - VisualEditor: Math formula does not display correctly if preferences are set to both TeX and MathJax
VisualEditor: Math formula does not display correctly if preferences are set...
Status: RESOLVED DUPLICATE of bug 60728
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-28 21:45 UTC by WhatamIdoing
Modified: 2014-06-09 06:31 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description WhatamIdoing 2014-04-28 21:45:31 UTC
Steps to Reproduce:
1. Enable VisualEditor formulae editing at Special:Preferences#mw-prefsection-betafeatures.

2. Change math-related preferences to:
   * Leave it as TeX (for text browsers) (radio button; it's off by default)
   * MathJax (experimental; best for most browsers) (tick box; it's off by default)

3. Open a page like [[:w:Torque]] in VisualEditor.

4. Select a math formula from the page.

5. Open the math editing tool.

6. Change some thing in the formula (e.g., replace "alpha" with "beta").

7. Look at the mess in the new version of the math formula (the one on the page, not the TeX code in the editing tool).



Reproducible: Always

See screenshots here:

https://en.wikipedia.org/wiki/File:Bug_with_using_VE_and_mathjax.png

https://commons.wikimedia.org/wiki/File:MathJax_mess_2014-04-28_at_2.33.08_PM.png
Comment 1 WhatamIdoing 2014-04-28 21:47:43 UTC
See https://en.wikipedia.org/w/index.php?oldid=606239634#Problem_with_MathJax_and_visual_editor. for an analysis of CSS-related issues.  MathJax uses absolute positioning, and VisualEditor uses relative positioning.
Comment 2 Richard Morris 2014-04-29 06:17:11 UTC
The CSS problem is caused by this rule

.ve-ce-protectedNode, .ve-ce-protectedNode * {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  ...
}

MathJax makes heavy use of absolute positioning with elements like 

<span style="font-family: MathJax_Size4; position: absolute; top: -1.624em; left: 0.003em;">⎜<span style="display: inline-block; width: 0px; height: 3.975em;"></span></span>

so the .ve-ce-protectedNode CSS overrides all the positioning creating the mess.
Comment 3 James Forrester 2014-06-09 06:31:46 UTC

*** This bug has been marked as a duplicate of bug 60728 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links