prev next
File: Presentation/TokenElements/mi/miScolorscope7.xml (mml file)
Author: Robert Miner and Jeff Schaefer, Geometry Technologies
Description: Tests scoping of color attributes for <mi> with <mstyle>. Also tests some CSS color name attribute values.
Sample Rendering:
Created by: webeq

Your browser's rendering:

a + a + a + a a + a + a + a a + a + a + a


Source Code:

    <math> 
      <mtable> 
        <mtr> 
          <mtd> 
            <mi fontsize='14pt'>a</mi> 
            <mo color='black'>+</mo> 
            <mstyle fontsize='24pt' color='GREEN'> 
              <mi>a</mi> 
              <mo color='red'>+</mo> 
              <mi color='red'>a</mi> 
            </mstyle> 
            <mo>+</mo> 
            <mi>a</mi> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mi mathsize='14pt'>a</mi> 
            <mo mathcolor='black'>+</mo> 
            <mstyle mathsize='24pt' mathcolor='GREEN'> 
              <mi>a</mi> 
              <mo mathcolor='red'>+</mo> 
              <mi mathcolor='red'>a</mi> 
            </mstyle> 
            <mo>+</mo> 
            <mi>a</mi> 
          </mtd> 
        </mtr> 
        <mtr> 
          <mtd> 
            <mi mathsize='14pt'>a</mi> 
            <mo mathcolor='black'>+</mo> 
            <mstyle mathsize='24pt' mathcolor='GREEN'> 
              <mi>a</mi> 
              <mo color='red'>+</mo> 
              <mi fontsize='14pt'>a</mi> 
            </mstyle> 
            <mo>+</mo> 
            <mi>a</mi> 
          </mtd> 
        </mtr> 
      </mtable> 
    </math>
  

Test Suite Home