Skip to content

Commit 13cd707

Browse files
committed
Use currentColor rather than black for menclose when mathcolor isn't specified. Resolves issue mathjax#1573.
1 parent 66c73ce commit 13cd707

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

unpacked/jax/output/HTML-CSS/autoload/menclose.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
5555
HTMLCSS.addBox(stack,frame); stack.insertBefore(frame,base); // move base to above background
5656
var T = 0, B = 0, R = 0, L = 0, dx = 0, dy = 0; var svg, vml;
5757
var w, h, r;
58-
if (!values.mathcolor) {values.mathcolor = "black"} else {span.style.color = values.mathcolor}
58+
if (!values.mathcolor) {values.mathcolor = "currentColor"} else {span.style.color = values.mathcolor}
5959

6060
// perform some reduction e.g. eliminate duplicate notations.
6161
var nl = MathJax.Hub.SplitList(values.notation), notation = {};

unpacked/jax/output/SVG/autoload/menclose.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
113113
t = Math.max(1/SVG.em,t); // see issue #414
114114
var H = base.h+p+t, D = base.d+p+t, W = base.w+2*(p+t);
115115
var dx = 0, w, h, i, m, borders = [false,false,false,false];
116-
if (!values.mathcolor) {values.mathcolor = "black"}
116+
if (!values.mathcolor) {values.mathcolor = "currenColor"}
117117

118118
// perform some reduction e.g. eliminate duplicate notations.
119119
var nl = MathJax.Hub.SplitList(values.notation), notation = {};

0 commit comments

Comments
 (0)