From 13cd70757ffb20529d0e17d50b3c2cb9af151e61 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 4 Aug 2016 10:55:10 -0400 Subject: [PATCH] Use currentColor rather than black for menclose when mathcolor isn't specified. Resolves issue #1573. --- unpacked/jax/output/HTML-CSS/autoload/menclose.js | 2 +- unpacked/jax/output/SVG/autoload/menclose.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/output/HTML-CSS/autoload/menclose.js b/unpacked/jax/output/HTML-CSS/autoload/menclose.js index f1843aaf4..3f9773b6a 100644 --- a/unpacked/jax/output/HTML-CSS/autoload/menclose.js +++ b/unpacked/jax/output/HTML-CSS/autoload/menclose.js @@ -55,7 +55,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { HTMLCSS.addBox(stack,frame); stack.insertBefore(frame,base); // move base to above background var T = 0, B = 0, R = 0, L = 0, dx = 0, dy = 0; var svg, vml; var w, h, r; - if (!values.mathcolor) {values.mathcolor = "black"} else {span.style.color = values.mathcolor} + if (!values.mathcolor) {values.mathcolor = "currentColor"} else {span.style.color = values.mathcolor} // perform some reduction e.g. eliminate duplicate notations. var nl = MathJax.Hub.SplitList(values.notation), notation = {}; diff --git a/unpacked/jax/output/SVG/autoload/menclose.js b/unpacked/jax/output/SVG/autoload/menclose.js index e0e75b099..2939109ed 100644 --- a/unpacked/jax/output/SVG/autoload/menclose.js +++ b/unpacked/jax/output/SVG/autoload/menclose.js @@ -113,7 +113,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { t = Math.max(1/SVG.em,t); // see issue #414 var H = base.h+p+t, D = base.d+p+t, W = base.w+2*(p+t); var dx = 0, w, h, i, m, borders = [false,false,false,false]; - if (!values.mathcolor) {values.mathcolor = "black"} + if (!values.mathcolor) {values.mathcolor = "currenColor"} // perform some reduction e.g. eliminate duplicate notations. var nl = MathJax.Hub.SplitList(values.notation), notation = {};