mathjax / MathJax

Beautiful and accessible math in all browsers
http://www.mathjax.org/
Apache License 2.0
10.25k stars 1.16k forks source link

Vertical alignment of equations in table (Webkit) #253

Open drfred opened 12 years ago

drfred commented 12 years ago

When an equation is placed in a table cell with vertical-align: top and the height of the equation is different than the height of the other text, it is not aligned with the other text in chrome or safari.

However, the alignment is correct with firefox or opera.

Using html <sup> does the same thing, so I suspect it is a browser issue.

I don't know which is actually the correct behavior.

Here is an example: http://sullivan.mathcs.wilkes.edu/bug.html

A workaround is to put the contents of the cell inside a div.

dpvc commented 12 years ago

I don't know which is the correct behavior, either, but I suspect it is the Firefox/Opera version. The fact that it fails to work as expected with <sup> suggests that it is a WebKit bug. In any case, I don't think there is anything that MathJax can do about it. I appreciate your providing a work-around in the form of a wrapping <div>.

fred-wang commented 12 years ago

@drfred thank you very much. I reported the issue here:

https://bugs.webkit.org/show_bug.cgi?id=90335

and will integrate your test case in our test suite.

fred-wang commented 12 years ago

MathMLToDisplay/issue253.html

=> In testsuite

pkra commented 8 years ago

This was fixed in Blink but WebKit still fails.