diff --git a/scripts/9/data.js b/scripts/9/data.js
index ab683515..d502a0fe 100644
--- a/scripts/9/data.js
+++ b/scripts/9/data.js
@@ -76,6 +76,20 @@ var tests = [
]
},
+ 'The next test checks if the browser makes any effort at rendering MathML, it does not stress test MathML support',
+ /* We might want to expand the test to check for support of specific elements though, at least Content vs Presentation markup */
+
+ {
+ id: 'mathml',
+ name: 'MathML support',
+ value: 2 /* 1 for Content, 1 for Presentation */,
+ urls: [
+ [ 'w3c', 'https://www.w3.org/TR/MathML/' ],
+ [ 'mdn', '/Web/MathML' ]
+ ]
+ },
+
+
'New or modified elements',
{
diff --git a/scripts/9/engine.js b/scripts/9/engine.js
index e42c2bf3..55edd0c8 100644
--- a/scripts/9/engine.js
+++ b/scripts/9/engine.js
@@ -211,6 +211,23 @@ Test9 = (function () {
});
},
+ /* mathml support */
+
+ function (results) {
+ var element = document.createElement('div');
+ element.innerHTML = "";
+ document.body.appendChild(element);
+ var box = element.firstChild.firstChild.getBoundingClientRect();
+ console.log(box);
+
+ results.addItem({
+ key: 'elements.mathml',
+ passed: box.height == 23 && box.width == 77
+ });
+
+ document.body.removeChild(element);
+ },
+
/* section, nav, article, header and footer */