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:
commit
58ee4a04a5
File diff suppressed because one or more lines are too long
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user