diff --git a/buildTree.js b/buildTree.js index 40c0e6be2..d98623f81 100644 --- a/buildTree.js +++ b/buildTree.js @@ -525,6 +525,10 @@ var buildTree = function(tree) { topStrut.style.height = span.height + "em"; bottomStrut.style.height = (span.height + span.depth) + "em"; + // We'd like to use `vertical-align: top` but in IE 9 this lowers the + // baseline of the box to the bottom of this strut (instead staying in the + // normal place) so we use an absolute value for vertical-align instead + bottomStrut.style.verticalAlign = -span.depth + "em"; var katexNode = makeSpan(["katex"], [ makeSpan(["katex-inner"], [topStrut, bottomStrut, span]) diff --git a/static/katex.less b/static/katex.less index 432861ed9..a1144c290 100644 --- a/static/katex.less +++ b/static/katex.less @@ -23,10 +23,6 @@ big parens .strut { display: inline-block; - - &.bottom { - vertical-align: top; - } } .mathit {