| <!doctype html> |
| <html> |
| <head> |
| <title>background, color</title> |
| <meta charset="utf-8"/> |
| </head> |
| <body> |
| |
| <!-- This should just draw the blue background of the div. --> |
| <div style="background: blue; padding: 1px;"> |
| <math style="visibility: hidden;"> |
| <mo mathcolor="#00F">∑</mo> |
| <mfrac mathcolor="blue"><mi>x</mi><mi>y</mi></mfrac> |
| <mn mathcolor="#00F">1</mn> |
| <msqrt mathcolor="#0000FF"><mn>2</mn></msqrt> |
| </math> |
| <math> |
| <mfrac color="blue"><mi>x</mi><mi>y</mi></mfrac> |
| </math> |
| </div> |
| |
| <!-- The style attribute should have the same effect as the MathML |
| attributes for colors. --> |
| <div> |
| <math style="background: orange"> |
| <mo style="color: blue">∑</mo> |
| <mfrac style="color: blue"><mi>x</mi><mi>y</mi></mfrac> |
| <mn style="color: blue">1</mn> |
| <msqrt style="color: blue"><mn>2</mn></msqrt> |
| </math> |
| <math style="background: orange"> |
| <mfrac style="color: blue"><mi>x</mi><mi>y</mi></mfrac> |
| </math> |
| </div> |
| |
| </body> |
| </html> |