layout/reftests/mathml/mathscript-1.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <!doctype html>
     2 <head>
     3   <style type="text/css" media="screen, print">
     4     @font-face {
     5       font-family: "mathssty";
     6       src: url("mathssty.woff");
     7     }
     8   </style>
     9 </head>
    10 <body>
    12   <!-- Demonstrate that it has no effect outside MathML -->
    13   <div style="font-family: 'mathssty'; 
    14               -moz-font-feature-settings: 'ssty' 1">A</div>
    15   <div style="font-family: 'mathssty'; 
    16               -moz-font-feature-settings: 'ssty' 2">A</div>
    18   <!-- Demonstrate that it works within MathML -->
    19   <math>
    20     <mstyle style="font-family: 'mathssty';">
    21     <mrow>
    22       <mo style="-moz-font-feature-settings: 'ssty' 0">A</mo>
    23       <mo style="-moz-font-feature-settings: 'ssty' 1">A</mo>
    24       <mo style="-moz-font-feature-settings: 'ssty' 2">A</mo>
    25     </mrow>
    26     </mstyle>
    27   </math>
    28   <p>
    29   <!-- verify it works for the other elements except mtext -->
    30   <math>
    31     <mstyle style="font-family: 'mathssty'; -moz-font-feature-settings: 'ssty' 2">
    32       <mi mathvariant="normal">A</mi>
    33       <mn>A</mn>
    34       <mtext>A</mtext>
    35     </mstyle>
    36   </math>
    37 </body>

mercurial