layout/reftests/mathml/mathscript-1-ref.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 <!doctype html>
michael@0 2 <head>
michael@0 3
michael@0 4 <!-- This font only has glyphs defined for 'A', 'B', 'C' and 'D', and is
michael@0 5 designed purely for testing ssty and OpenType 'math' script
michael@0 6 functionality
michael@0 7 The glyphs for 'A' and 'D' are identical, the difference between them is
michael@0 8 that 'A' supports the ssty font feature.
michael@0 9 'A' with ssty = 1 maps to 'B'
michael@0 10 'A' with ssty = 2 maps to 'C'
michael@0 11 The difference between this font and ssty.woff is that the font feature
michael@0 12 is contained within the OpenType 'math' script. -->
michael@0 13 <style type="text/css" media="screen, print">
michael@0 14 @font-face {
michael@0 15 font-family: "mathssty";
michael@0 16 src: url("mathssty.woff");
michael@0 17 }
michael@0 18 </style>
michael@0 19 </head>
michael@0 20 <body>
michael@0 21
michael@0 22 <!-- Demonstrate that it has no effect outside MathML -->
michael@0 23 <div style="font-family: 'mathssty';">D</div>
michael@0 24 <div style="font-family: 'mathssty';">D</div>
michael@0 25
michael@0 26 <!-- Demonstrate that it works within MathML -->
michael@0 27 <math>
michael@0 28 <mstyle style="font-family: 'mathssty';">
michael@0 29 <mrow>
michael@0 30 <mo>D</mo>
michael@0 31 <mo>B</mo>
michael@0 32 <mo>C</mo>
michael@0 33 </mrow>
michael@0 34 </mstyle>
michael@0 35 </math>
michael@0 36 <p>
michael@0 37 <!-- verify it works for the other elements except mtext -->
michael@0 38 <math>
michael@0 39 <mstyle style="font-family: 'mathssty';">
michael@0 40 <mi mathvariant="normal">C</mi>
michael@0 41 <mn>C</mn>
michael@0 42 <mtext>D</mtext>
michael@0 43 </mstyle>
michael@0 44 </math>
michael@0 45 </body>

mercurial