<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="../../../../style/mathml.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <!--
Copyright &#251; 1994-2003 World Wide Web Consortium, (Massachusetts Institute
of Technology, European Consortium for Informatics and
Mathematics, Keio University). All Rights Reserved. See
http://www.w3.org/Consortium/Legal/.
  -->
  <head>
    <title> W3C MathML TestSuite, Version 2: hexcolors2</title>
</head>
  <body style="background: #ffffff">
    <table width="100%" cellpadding="8">
      <tr>
        <td>
          <a href="../../../Presentation/TokenElements/mglyph/rec-mglyph2.xml">
    prev </a>
        </td>
        <td style="text-align: right">
          <a href="../../../Presentation/TokenElements/CommonAttributes/sizeunits3.xml">
    next</a>
        </td>
      </tr>
    </table>
      <table style="background:#cccccc" cellpadding="4">
        <tr>
          <td style="text-align: right" valign="top">File:</td>
          <td>Presentation/TokenElements/CommonAttributes/hexcolors2.xml (<a href="hexcolors2.mml">mml file</a>)
        </td>
        </tr>
        <tr>
          <td style="text-align: right" valign="top">Author:</td>
          <td>Robert Miner and Jeff Schaefer, Geometry Technologies; Neil Soiffer, Wolfram Research</td>
        </tr>
        <tr>
          <td style="text-align: right" valign="top">Description:</td>
          <td>This test checks that both CSS hex color formats are
correctly processed, using the 'color', 'mathcolor', and 'mathbackground'
attribute of the &lt;mi> and &lt;mn> elements.</td>
        </tr>
        <tr>
          <td style="text-align: right" valign="top">Sample Rendering:</td>
          <td>
            <table>
              <tr>
                <td>
                  <img src="hexcolors2.png" alt="Created by: webeq"/>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    <p>
      <b>Your browser's rendering</b>:</p>
    <p>
    <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>
  </p>
    <hr/>
    <p>
      <b>Source Code</b>:</p>
    <pre>
    &lt;math> 
      &lt;mtable> 
        &lt;mtr> 
          &lt;mtd> 
            &lt;mrow> 
              &lt;mi color='#f00'>A&lt;/mi> 
              &lt;mo>+&lt;/mo> 
              &lt;mi color='#0000ff'>A&lt;/mi> 
            &lt;/mrow> 
          &lt;/mtd> 
        &lt;/mtr> 
        &lt;mtr> 
          &lt;mtd> 
            &lt;mrow> 
              &lt;mn mathcolor='#f00'>1&lt;/mn> 
              &lt;mo>+&lt;/mo> 
              &lt;mn mathcolor='#0000ff'>1&lt;/mn> 
            &lt;/mrow> 
          &lt;/mtd> 
        &lt;/mtr> 
        &lt;mtr> 
          &lt;mtd> 
            &lt;mrow> 
              &lt;mn mathbackground='#f00'>1&lt;/mn> 
              &lt;mo>+&lt;/mo> 
              &lt;mn mathbackground='#0000ff'>1&lt;/mn> 
            &lt;/mrow> 
          &lt;/mtd> 
        &lt;/mtr> 
      &lt;/mtable> 
    &lt;/math>
  </pre>
    <p style="text-align: right">
      <a href="../../../../overview.html" target="_top">
	Test Suite Home
	</a>
    </p>
    <hr/>
  </body>
</html>
