OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <title>MathML fallback</title> |
| 5 <meta charset="utf-8"/> |
| 6 <!-- This test passes if the appropriate fallback content is displayed and t
he display attribute is taken into account. --> |
| 7 </head> |
| 8 <body> |
| 9 |
| 10 <!-- No fallback is given so the formula should render without any formattin
g other than the one specified by the display attribute. --> |
| 11 <p> |
| 12 <math> |
| 13 <mfrac> |
| 14 <mn>2</mn> |
| 15 <mi>x</mi> |
| 16 </mfrac> |
| 17 </math> |
| 18 <math display="block"> |
| 19 <mfrac> |
| 20 <mn>2</mn> |
| 21 <mi>x</mi> |
| 22 </mfrac> |
| 23 </math> |
| 24 </p> |
| 25 |
| 26 <!-- The TeX annotation should be displayed. --> |
| 27 <p> |
| 28 <math> |
| 29 <semantics> |
| 30 <mfrac> |
| 31 <mn>2</mn> |
| 32 <mi>x</mi> |
| 33 </mfrac> |
| 34 <annotation encoding="TeX">\frac{2}{x}</annotation> |
| 35 <annotation>ERROR</annotation> |
| 36 <annotation-xml encoding="MathML-Presentation"><mtext>ERROR</mtext></a
nnotation-xml> |
| 37 </semantics> |
| 38 </math> |
| 39 <math display="block"> |
| 40 <semantics> |
| 41 <mfrac> |
| 42 <mn>2</mn> |
| 43 <mi>x</mi> |
| 44 </mfrac> |
| 45 <annotation encoding="TeX">\frac{2}{x}</annotation> |
| 46 <annotation>ERROR</annotation> |
| 47 <annotation-xml encoding="MathML-Presentation"><mtext>ERROR</mtext></a
nnotation-xml> |
| 48 </semantics> |
| 49 </math> |
| 50 </p> |
| 51 |
| 52 <!-- The MathML-Presentation annotation (containing an image) should be disp
layed. --> |
| 53 <p> |
| 54 <math> |
| 55 <semantics> |
| 56 <mfrac> |
| 57 <mn>2</mn> |
| 58 <mi>x</mi> |
| 59 </mfrac> |
| 60 <annotation-xml encoding="MathML-Presentation"><mtext><img src="data:i
mage/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAsCAIAAADjKa/gAAAACXBIWXMAAA7EAAAO
xAGVKw4bAAAAB3RJTUUH3QwfDiog8WXOcwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeB
DhcAAAG6SURBVEjH7VQ/qHlhGH7P7YoUKZ1i06GODWWQskrKJB1lsVllOYPFJMogKTYrq0VZTpTJyWaU
cjgmkZA/fd+5g+W7555z+9l+tzzb873PU++f730pRVHgFXzAi/gDBkmSUqmUzWZzuVw8z59OJ7VDIXA+
n1mW7fV6h8Oh3W4DQDwexxiTmm+GwWAAAOl0+kl9Ph8AiKJIar6l5PV6GYZxu91ParfbAUCWZd2USNzv
d5qmjUbjdrvVTYlEvV4HgGazqXrXNoiiaDabq9Xqz5CGYbVaOZ3OSqWiKMpsNttsNr8ZjsdjIBBotVpP
GolEBEEgBRT5Wx+PRyKRmE6noVAIY4wQEgRBkiSHw6HdpW63qxqrxWJRDY5678M/4JMkFEVpishOvtv6
fxoQQjzPezyeYDBYLpdZlo3FYrvdTvfMFItFjuMQQn6/32q11mo1ABiNRro7nc/nZVm+XC4mk4njuPV6
3e/3yaXTPjPD4RAAOp3Oz5C6hvF4vFgsnoZoNHq73XK5HEJIu4blcgkAhUKBYRiapjHGpVIpm83qHoHr
9ZrJZObzeTKZnEwm+/0+HA43Gg2DwfD+3i/hCwlnLMO2QWEsAAAAAElFTkSuQmCC" alt="2/x"/></m
text></annotation-xml> |
| 61 <annotation>ERROR</annotation> |
| 62 <annotation-xml encoding="MathML-Presentation"><mtext>ERROR</mtext></a
nnotation-xml> |
| 63 </semantics> |
| 64 </math> |
| 65 <math display="block"> |
| 66 <semantics> |
| 67 <mfrac> |
| 68 <mn>2</mn> |
| 69 <mi>x</mi> |
| 70 </mfrac> |
| 71 <annotation-xml encoding="MathML-Presentation"><mtext><img src="data:i
mage/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAsCAIAAADjKa/gAAAACXBIWXMAAA7EAAAO
xAGVKw4bAAAAB3RJTUUH3QwfDiog8WXOcwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeB
DhcAAAG6SURBVEjH7VQ/qHlhGH7P7YoUKZ1i06GODWWQskrKJB1lsVllOYPFJMogKTYrq0VZTpTJyWaU
cjgmkZA/fd+5g+W7555z+9l+tzzb873PU++f730pRVHgFXzAi/gDBkmSUqmUzWZzuVw8z59OJ7VDIXA+
n1mW7fV6h8Oh3W4DQDwexxiTmm+GwWAAAOl0+kl9Ph8AiKJIar6l5PV6GYZxu91ParfbAUCWZd2USNzv
d5qmjUbjdrvVTYlEvV4HgGazqXrXNoiiaDabq9Xqz5CGYbVaOZ3OSqWiKMpsNttsNr8ZjsdjIBBotVpP
GolEBEEgBRT5Wx+PRyKRmE6noVAIY4wQEgRBkiSHw6HdpW63qxqrxWJRDY5678M/4JMkFEVpishOvtv6
fxoQQjzPezyeYDBYLpdZlo3FYrvdTvfMFItFjuMQQn6/32q11mo1ABiNRro7nc/nZVm+XC4mk4njuPV6
3e/3yaXTPjPD4RAAOp3Oz5C6hvF4vFgsnoZoNHq73XK5HEJIu4blcgkAhUKBYRiapjHGpVIpm83qHoHr
9ZrJZObzeTKZnEwm+/0+HA43Gg2DwfD+3i/hCwlnLMO2QWEsAAAAAElFTkSuQmCC" alt="2/x"/></m
text></annotation-xml> |
| 72 <annotation>ERROR</annotation> |
| 73 <annotation-xml encoding="MathML-Presentation"><mtext>ERROR</mtext></a
nnotation-xml> |
| 74 </semantics> |
| 75 </math> |
| 76 </p> |
| 77 |
| 78 <!-- The alttext content should be displayed. --> |
| 79 <p> |
| 80 <math alttext="2/x"> |
| 81 <semantics> |
| 82 <mfrac> |
| 83 <mn>2</mn> |
| 84 <mi>x</mi> |
| 85 </mfrac> |
| 86 <annotation>ERROR</annotation> |
| 87 <annotation-xml encoding="MathML-Presentation"><mtext>ERROR</mtext></a
nnotation-xml> |
| 88 </semantics> |
| 89 </math> |
| 90 <math display="block" alttext="2/x"> |
| 91 <semantics> |
| 92 <mfrac> |
| 93 <mn>2</mn> |
| 94 <mi>x</mi> |
| 95 </mfrac> |
| 96 <annotation>ERROR</annotation> |
| 97 <annotation-xml encoding="MathML-Presentation"><mtext>ERROR</mtext></a
nnotation-xml> |
| 98 </semantics> |
| 99 </math> |
| 100 </p> |
| 101 |
| 102 </body> |
| 103 </html> |
OLD | NEW |