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:
Davide P. Cervone 2011-10-25 16:52:14 -04:00
parent a658f2cb63
commit 11e11f2ac0
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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}