prev  ( testsuite > Presentation > TokenElements > CommonAttributes > sizeunits4  )  next

Alternatives: (mml file)  (full) (simple) (plain) (form) (slideshow)
File:Presentation/TokenElements/CommonAttributes/sizeunits4
CVS-ID:
Author:Robert Miner and Jeff Schaefer, Geometry Technologies
Description:This test runs through the CSS vertical units, using the 'superscript' attribute of the <msup> element, which is a little more obscure than something like 'fontsize'.

Sample Rendering:

Created by: webeq

Your browser's rendering:

x 2 + x 2 + x 2 + M x 2 + x 2 + x 2 + x 2 + x 2 + x 2 + x 2

Source Code:

<math xmlns="http://www.w3.org/1998/Math/MathML"> 
  <mrow> 
    <msup> 
      <mi mathcolor="Blue">x</mi> 
      <mn>2</mn> 
    </msup> 
    <mo>+</mo> 
    <msup superscriptshift="24pt"> 
      <mi mathcolor="Blue">x</mi> 
      <mn>2</mn> 
    </msup> 
    <mo>+</mo> 
    <msup superscriptshift="1ex"> 
      <mi mathcolor="Blue">x</mi> 
      <mn>2</mn> 
    </msup> 
    <mo>+</mo> 
    <msup superscriptshift="1em"> 
      <mrow> 
        <mi>M</mi> 
        <mi mathcolor="Blue">x</mi> 
      </mrow> 
      <mn>2</mn> 
    </msup> 
    <mo>+</mo> 
    <msup superscriptshift="10px"> 
      <mi mathcolor="Blue">x</mi> 
      <mn>2</mn> 
    </msup> 
    <mo>+</mo> 
    <msup superscriptshift="0.25in"> 
      <mi mathcolor="Blue">x</mi> 
      <mn>2</mn> 
    </msup> 
    <mo>+</mo> 
    <msup superscriptshift="1cm"> 
      <mi mathcolor="Blue">x</mi> 
      <mn>2</mn> 
    </msup> 
    <mo>+</mo> 
    <msup superscriptshift="10mm"> 
      <mi mathcolor="Blue">x</mi> 
      <mn>2</mn> 
    </msup> 
    <mo>+</mo> 
    <msup superscriptshift="1pc"> 
      <mi mathcolor="Blue">x</mi> 
      <mn>2</mn> 
    </msup> 
    <mo>+</mo> 
    <msup> 
      <mi fontsize="170%" mathcolor="Blue">x 
      </mi> 
      <mn>2</mn> 
    </msup> 
  </mrow> 
</math>