www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 63fda7420213a6839d366d9ccdcb5250725f259d
parent 1ae76a481340117e6f44211482858fc364f40df5
Author: Emily Eisenberg <emily@khanacademy.org>
Date:   Mon, 17 Mar 2014 23:44:36 -0400

Make marginRight work in firefox

Summary:
`.style["margin-right"]` doesn't work in firefox, but
`.style.marginRight` does.

Test Plan:
- Look at `b\llap{f}` in chrome and firefox
- Make sure it looks the same (or at least very similar) in both

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D7476

Diffstat:
MbuildTree.js | 2+-
Mtest/huxley/GreekLetters.huxley/screenshot0.png | 0
Mtest/huxley/Lap.huxley/screenshot0.png | 0
Mtest/huxley/NestedFractions.huxley/screenshot0.png | 0
4 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildTree.js b/buildTree.js @@ -507,7 +507,7 @@ var makeText = function(value, style) { metrics.depth); if (metrics.italic > 0) { var span = makeSpan([], [textNode]); - span.style["margin-right"] = metrics.italic + "em"; + span.style.marginRight = metrics.italic + "em"; return span; } else { diff --git a/test/huxley/GreekLetters.huxley/screenshot0.png b/test/huxley/GreekLetters.huxley/screenshot0.png Binary files differ. diff --git a/test/huxley/Lap.huxley/screenshot0.png b/test/huxley/Lap.huxley/screenshot0.png Binary files differ. diff --git a/test/huxley/NestedFractions.huxley/screenshot0.png b/test/huxley/NestedFractions.huxley/screenshot0.png Binary files differ.