1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/mathml/mathscript-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +<!doctype html> 1.5 +<head> 1.6 + <style type="text/css" media="screen, print"> 1.7 + @font-face { 1.8 + font-family: "mathssty"; 1.9 + src: url("mathssty.woff"); 1.10 + } 1.11 + </style> 1.12 +</head> 1.13 +<body> 1.14 + 1.15 + <!-- Demonstrate that it has no effect outside MathML --> 1.16 + <div style="font-family: 'mathssty'; 1.17 + -moz-font-feature-settings: 'ssty' 1">A</div> 1.18 + <div style="font-family: 'mathssty'; 1.19 + -moz-font-feature-settings: 'ssty' 2">A</div> 1.20 + 1.21 + <!-- Demonstrate that it works within MathML --> 1.22 + <math> 1.23 + <mstyle style="font-family: 'mathssty';"> 1.24 + <mrow> 1.25 + <mo style="-moz-font-feature-settings: 'ssty' 0">A</mo> 1.26 + <mo style="-moz-font-feature-settings: 'ssty' 1">A</mo> 1.27 + <mo style="-moz-font-feature-settings: 'ssty' 2">A</mo> 1.28 + </mrow> 1.29 + </mstyle> 1.30 + </math> 1.31 + <p> 1.32 + <!-- verify it works for the other elements except mtext --> 1.33 + <math> 1.34 + <mstyle style="font-family: 'mathssty'; -moz-font-feature-settings: 'ssty' 2"> 1.35 + <mi mathvariant="normal">A</mi> 1.36 + <mn>A</mn> 1.37 + <mtext>A</mtext> 1.38 + </mstyle> 1.39 + </math> 1.40 +</body>