prev next
File: Presentation/TokenElements/CommonAttributes/hexcolors2.xml (mml file)
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:
Created by: webeq

Your browser's rendering:

A + A 1 + 1 1 + 1


Source Code:

    <math> 
      <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>
  

Test Suite Home