\kern generates right-margin instead of left-margin. Fix #995 (#1019)

* \kern generates padding instead of margin. Fix #995

* Switch to marginRight

* Add screenshot tests
This commit is contained in:
Erik Demaine
2017-12-28 22:03:08 -08:00
committed by Kevin Barabash
parent 7702ffa5b6
commit d822f04b9b
4 changed files with 7 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ defineFunction({
if (group.value.dimension) {
const dimension = calculateSize(group.value.dimension, options);
rule.style.marginLeft = dimension + "em";
rule.style.marginRight = dimension + "em";
}
return rule;