Handle background colors set by style attributes better (since color is handled by a separate span, remove it from the given span)
This commit is contained in:
parent
a658f2cb63
commit
11e11f2ac0
File diff suppressed because one or more lines are too long
|
@ -214,7 +214,10 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
|
|||
if (frame) {
|
||||
// mathcolor is handled in toHTML above
|
||||
var values = this.getValues("mathbackground","background");
|
||||
if (this.style && span.style.backgroundColor) {values.mathbackground = span.style.backgroundColor}
|
||||
if (this.style && span.style.backgroundColor) {
|
||||
values.mathbackground = span.style.backgroundColor;
|
||||
span.style.backgroundColor = "";
|
||||
}
|
||||
if (values.background && !this.mathbackground) {values.mathbackground = values.background}
|
||||
if (values.mathbackground && values.mathbackground !== MML.COLOR.TRANSPARENT)
|
||||
{frame.style.backgroundColor = values.mathbackground}
|
||||
|
|
Loading…
Reference in New Issue
Block a user