Index: LayoutTests/mathml/fallback.html |
diff --git a/LayoutTests/mathml/fallback.html b/LayoutTests/mathml/fallback.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1f86ae6adecdcb9b2469584018e94ced6db23511 |
--- /dev/null |
+++ b/LayoutTests/mathml/fallback.html |
@@ -0,0 +1,71 @@ |
+<!doctype html> |
+<html> |
+ <head> |
+ <title>MathML fallback</title> |
+ <meta charset="utf-8"/> |
+ <!-- This test passes if the appropriate fallback content is displayed and the display attribute is taken into account. --> |
+ </head> |
+ <body> |
+ |
+ <!-- No fallback is given so the formula should render without any formatting other than the one specified by the display attribute. --> |
+ <p> |
+ <math> |
+ <mfrac> |
+ <mn>2</mn> |
+ <mi>x</mi> |
+ </mfrac> |
+ </math> |
+ <math display="block"> |
+ <mfrac> |
+ <mn>2</mn> |
+ <mi>x</mi> |
+ </mfrac> |
+ </math> |
+ </p> |
+ |
+ <!-- The TeX annotation should be displayed. --> |
+ <p> |
+ <math> |
+ <semantics> |
+ <mfrac> |
+ <mn>2</mn> |
+ <mi>x</mi> |
+ </mfrac> |
+ <annotation encoding="TeX">\frac{2}{x}</annotation> |
+ </semantics> |
+ </math> |
+ <math display="block"> |
+ <semantics> |
+ <mfrac> |
+ <mn>2</mn> |
+ <mi>x</mi> |
+ </mfrac> |
+ <annotation encoding="TeX">\frac{2}{x}</annotation> |
+ </semantics> |
+ </math> |
+ </p> |
+ |
+ <!-- The MathML-Presentation annotation (containing an image) should be displayed. --> |
+ <p> |
+ <math> |
+ <semantics> |
+ <mfrac> |
+ <mn>2</mn> |
+ <mi>x</mi> |
+ </mfrac> |
+ <annotation-xml encoding="MathML-Presentation"><mtext><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAsCAIAAADjKa/gAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH3QwfDiog8WXOcwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAG6SURBVEjH7VQ/qHlhGH7P7YoUKZ1i06GODWWQskrKJB1lsVllOYPFJMogKTYrq0VZTpTJyWaUcjgmkZA/fd+5g+W7555z+9l+tzzb873PU++f730pRVHgFXzAi/gDBkmSUqmUzWZzuVw8z59OJ7VDIXA+n1mW7fV6h8Oh3W4DQDwexxiTmm+GwWAAAOl0+kl9Ph8AiKJIar6l5PV6GYZxu91ParfbAUCWZd2USNzvd5qmjUbjdrvVTYlEvV4HgGazqXrXNoiiaDabq9Xqz5CGYbVaOZ3OSqWiKMpsNttsNr8ZjsdjIBBotVpPGolEBEEgBRT5Wx+PRyKRmE6noVAIY4wQEgRBkiSHw6HdpW63qxqrxWJRDY5678M/4JMkFEVpishOvtv6fxoQQjzPezyeYDBYLpdZlo3FYrvdTvfMFItFjuMQQn6/32q11mo1ABiNRro7nc/nZVm+XC4mk4njuPV63e/3yaXTPjPD4RAAOp3Oz5C6hvF4vFgsnoZoNHq73XK5HEJIu4blcgkAhUKBYRiapjHGpVIpm83qHoHr9ZrJZObzeTKZnEwm+/0+HA43Gg2DwfD+3i/hCwlnLMO2QWEsAAAAAElFTkSuQmCC" alt="2/x"/></mtext></annotation-xml> |
+ </semantics> |
+ </math> |
+ <math display="block"> |
+ <semantics> |
+ <mfrac> |
+ <mn>2</mn> |
+ <mi>x</mi> |
+ </mfrac> |
+ <annotation-xml encoding="MathML-Presentation"><mtext><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAsCAIAAADjKa/gAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH3QwfDiog8WXOcwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAG6SURBVEjH7VQ/qHlhGH7P7YoUKZ1i06GODWWQskrKJB1lsVllOYPFJMogKTYrq0VZTpTJyWaUcjgmkZA/fd+5g+W7555z+9l+tzzb873PU++f730pRVHgFXzAi/gDBkmSUqmUzWZzuVw8z59OJ7VDIXA+n1mW7fV6h8Oh3W4DQDwexxiTmm+GwWAAAOl0+kl9Ph8AiKJIar6l5PV6GYZxu91ParfbAUCWZd2USNzvd5qmjUbjdrvVTYlEvV4HgGazqXrXNoiiaDabq9Xqz5CGYbVaOZ3OSqWiKMpsNttsNr8ZjsdjIBBotVpPGolEBEEgBRT5Wx+PRyKRmE6noVAIY4wQEgRBkiSHw6HdpW63qxqrxWJRDY5678M/4JMkFEVpishOvtv6fxoQQjzPezyeYDBYLpdZlo3FYrvdTvfMFItFjuMQQn6/32q11mo1ABiNRro7nc/nZVm+XC4mk4njuPV63e/3yaXTPjPD4RAAOp3Oz5C6hvF4vFgsnoZoNHq73XK5HEJIu4blcgkAhUKBYRiapjHGpVIpm83qHoHr9ZrJZObzeTKZnEwm+/0+HA43Gg2DwfD+3i/hCwlnLMO2QWEsAAAAAElFTkSuQmCC" alt="2/x"/></mtext></annotation-xml> |
+ </semantics> |
+ </math> |
+ </p> |
+ |
+ </body> |
+</html> |