Last modified: 2014-05-16 10:26:44 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 T50725, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48725 - MathJax makes links unclickable
MathJax makes links unclickable
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
master
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
https://en.wikipedia.org/w/index.php?...
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-22 19:45 UTC by Derk-Jan Hartman
Modified: 2014-05-16 10:26 UTC (History)
6 users (show)

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


Attachments

Description Derk-Jan Hartman 2013-05-22 19:45:40 UTC
Confirmed in at least Firefox and Safari.

In certain situations, the CSS of MathJax_Display causes linktargets to become unreachable. See the url field, where the links "continued fraction" and/or "periodic" in the right floating block are unclickable due to the equation at the left.

MathJax_Display uses
{
  text-align: center;
  margin: 1em 0em;
  position: relative;
  display: block;
  width: 100%;
}

To fix it, you can either:
1: Remove the position:relative; (i see no need of it actually)
2: Change to display:inline-block; and remove the width:100%;
Comment 1 Technical 13 2013-05-22 19:52:25 UTC
The link to the discussion that lead to the discovery of a solution can be found http://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29#Odd_link_not_clickable
Comment 2 Erwin Dokter 2013-05-22 19:53:53 UTC
Disabling the position: relative; rule for .MathJax_Display seems to fix the problem without any adverse effects. In fact, we might as well kill display: block;, as it is already embedded in a block level element (<dd>)

(But I see TheDJ already suggested that.)
Comment 3 Davide Cervone 2013-05-22 20:38:33 UTC
You should not remove position:relative from the .MathJax_Display as that will cause \tag to fail to be positioned properly, but display:block is only there to avoid page CSS from bleeding into MathJax output (some people have set the display style of DIV elements to something else in their CSS).

If you want to handle floating elements better, try including

    HTML-CSS: {
      extensions: ["handle-floats.js"]
    }

in your configuration.  See

  http://docs.mathjax.org/en/latest/output.html#html-css-extensions

for details.
Comment 4 Davide Cervone 2013-05-22 20:46:05 UTC
(OOPS, there should have been quotation marks around "HTML-CSS" in the code fragment above)
Comment 6 Derk-Jan Hartman 2013-05-23 08:05:09 UTC
I'll investigate this later, but both sound severely suboptimal. Perhaps I'll look into making the required behavior for \tag more dynamic.
Comment 7 Technical 13 2013-05-23 10:13:22 UTC
My only question is why is the width set to 100%?  That seems to be the real problem here to me.
Comment 8 Erwin Dokter 2013-07-21 09:04:48 UTC
One more observation: removing the ":" before the formula seems to 'fix' the problem. So the interaction between the MathJax CSS and the <dd> (and its CSS) elements warrant some investigation.
Comment 9 Peter Krautzberger 2013-07-21 19:07:46 UTC
Just to add this here as well: this comes down to a somewhat fundamental problem. MathML can't always be implemented "naturally" in HTML, so MathJax has to resort to complex constructs that don't always play nice with the rest.

As Davide already said, handle-floats is designed to improve interaction of our output with floats. It is the only recommended solution. If there's a problem with handle-floats, please let us know and we'll try to fix it. 

Messing with MathJax's CSS will invariably break MathJax rendering in unexpected places.
Comment 10 Matthew Flaschen 2013-07-26 03:06:49 UTC
Does anyone have a simple case for reproducing this, ideally without templates?
Comment 11 Erwin Dokter 2013-07-26 18:51:15 UTC
Here's a permalink from the original WP:VPT post: http://en.wikipedia.org/w/index.php?title=Plastic_number&oldid=556418666
Comment 12 Erwin Dokter 2014-05-16 10:26:44 UTC
The issue seems to be resolved, probably due to the various updates to MathJax. So closing this.

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


Navigation
Links