Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: LayoutTests/mathml/fallback.html

Issue 138383003: Display MathML fallback content when it is specified and take into account inline/display modes for… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update comments in mathml.css Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/mathml/fallback-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/mathml/fallback-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698