Handle background colors from style attributes better

git-svn-id: https://mathjax.svn.sourceforge.net/svnroot/mathjax/trunk@609 b8fd5906-0fad-46e2-a0d3-10d94ff285d1
This commit is contained in:
dpvc 2010-09-28 00:34:43 +00:00
commit 58ee4a04a5
2 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1271,7 +1271,11 @@
var values = this.getValues("mathcolor","color");
if (this.mathbackground) {values.mathbackground = this.mathbackground}
if (this.background) {values.background = this.background}
if (this.style && span.style.backgroundColor) {values.mathbackground = span.style.backgroundColor}
// @@@ FIXME: handle border as well?
if (this.style && span.style.backgroundColor) {
values.mathbackground = span.style.backgroundColor;
span.style.backgroundColor = "transparent";
}
if (values.color && !this.mathcolor) {values.mathcolor = values.color}
if (values.background && !this.mathbackground) {values.mathbackground = values.background}
if (values.mathcolor) {span.style.color = values.mathcolor}