blob: 65146609fab44e4548675852be8c88980dbc1af2 [file] [log] [blame]
<!doctype html><!-- webkit-test-runner [ CoreMathMLEnabled=false ] -->
<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">&#x2211;</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">&#x2211;</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>