| prev | ( testsuite > Presentation > TokenElements > CommonAttributes > hexcolors2 ) | next |
| Alternatives: | (mml file) (full) (simple) (plain) (form) (slideshow) |
| File: | Presentation/TokenElements/CommonAttributes/hexcolors2 |
| CVS-ID: | |
| Author: | Robert Miner and Jeff Schaefer, Geometry Technologies; Neil Soiffer, Wolfram Research |
| Description: | This test checks that both CSS hex color formats are correctly processed, using the 'color', 'mathcolor', and 'mathbackground' attribute of the <mi> and <mn> elements. |
Sample Rendering:
| |
Your browser's rendering:
Source Code:
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mtable>
<mtr>
<mtd>
<mrow>
<mi color="#f00">A</mi>
<mo>+</mo>
<mi color="#0000ff">A</mi>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<mn mathcolor="#f00">1</mn>
<mo>+</mo>
<mn mathcolor="#0000ff">1</mn>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<mn mathbackground="#f00">1</mn>
<mo>+</mo>
<mn mathbackground="#0000ff">1</mn>
</mrow>
</mtd>
</mtr>
</mtable>
</math>