mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 3bfdeb8976fc51748935c8d1f1014dfba8e08dfb
This commit is contained in:
parent
fcd6beb608
commit
cb63cfd5c7
185 changed files with 3083 additions and 1074 deletions
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>mfrac created dynamically</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>This test passes if it renders the same as an invalid fraction with 3 children.</p>
|
||||
<math>
|
||||
<mfrac>
|
||||
<mspace width="50px" height="50px" style="background: black"></mspace>
|
||||
<mspace width="50px" height="50px" style="background: black"></mspace>
|
||||
<mspace width="50px" height="50px" style="background: black"></mspace>
|
||||
</mfrac>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>mfrac created dynamically</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#mfrac">
|
||||
<meta name="assert" content="A dynamically added mfrac should render like the equivalent markup.">
|
||||
<link rel="match" href="frac-created-dynamically-2-ref.html">
|
||||
<script>
|
||||
window.addEventListener("DOMContentLoaded", function() {
|
||||
var mfrac = document.createElementNS("http://www.w3.org/1998/Math/MathML","mfrac");
|
||||
var mspace1 = document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");
|
||||
mspace1.setAttribute("width", "50px");
|
||||
mspace1.setAttribute("height", "50px");
|
||||
mspace1.setAttribute("style", "background: black");
|
||||
var mspace2 = document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");
|
||||
mspace2.setAttribute("width", "50px");
|
||||
mspace2.setAttribute("height", "50px");
|
||||
mspace2.setAttribute("style", "background: black");
|
||||
var mspace3 = document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");
|
||||
mspace3.setAttribute("width", "50px");
|
||||
mspace3.setAttribute("height", "50px");
|
||||
mspace3.setAttribute("style", "background: black");
|
||||
document.getElementsByTagName("math")[0].appendChild(mfrac);
|
||||
mfrac.appendChild(mspace1);
|
||||
mfrac.appendChild(mspace2);
|
||||
mfrac.appendChild(mspace3);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>This test passes if it renders the same as an invalid fraction with 3 children.</p>
|
||||
<math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>mfrac created dynamically</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>This test passes if you see a fraction 1/3.</p>
|
||||
<math>
|
||||
<mfrac>
|
||||
<mi>1</mi>
|
||||
<mi>3</mi>
|
||||
</mfrac>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>mfrac created dynamically</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#mfrac">
|
||||
<meta name="assert" content="A dynamically added mfrac should render like the equivalent markup.">
|
||||
<link rel="match" href="frac-created-dynamically-3-ref.html">
|
||||
<script>
|
||||
window.addEventListener("DOMContentLoaded", function() {
|
||||
var mi3 = document.createElementNS("http://www.w3.org/1998/Math/MathML","mi");
|
||||
mi3.appendChild(document.createTextNode("3"));
|
||||
document.getElementsByTagName("mfrac")[0].appendChild(mi3);
|
||||
document.getElementById("mi2").remove();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>This test passes if you see a fraction 1/3.</p>
|
||||
<math>
|
||||
<mfrac>
|
||||
<mi>1</mi>
|
||||
<mi id="mi2">2</mi>
|
||||
</mfrac>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>mfrac created dynamically</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>This test passes if you see a fraction.</p>
|
||||
<math>
|
||||
<mfrac>
|
||||
<mspace width="50px" height="50px" style="background: black"></mspace>
|
||||
<mspace width="50px" height="50px" style="background: black"></mspace>
|
||||
</mfrac>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>mfrac created dynamically</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#mfrac">
|
||||
<meta name="assert" content="A dynamically added mfrac should render like the equivalent markup.">
|
||||
<link rel="match" href="frac-created-dynamically-ref.html">
|
||||
<script>
|
||||
window.addEventListener("DOMContentLoaded", function() {
|
||||
var mfrac = document.createElementNS("http://www.w3.org/1998/Math/MathML","mfrac");
|
||||
var mspace1 = document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");
|
||||
mspace1.setAttribute("width", "50px");
|
||||
mspace1.setAttribute("height", "50px");
|
||||
mspace1.setAttribute("style", "background: black");
|
||||
var mspace2 = document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");
|
||||
mspace2.setAttribute("width", "50px");
|
||||
mspace2.setAttribute("height", "50px");
|
||||
mspace2.setAttribute("style", "background: black");
|
||||
mfrac.appendChild(mspace1);
|
||||
mfrac.appendChild(mspace2);
|
||||
document.getElementsByTagName("math")[0].appendChild(mfrac);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>This test passes if you see a fraction.</p>
|
||||
<math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>space (reference)</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if you see a green square and no text.</p>
|
||||
<math><mspace width="200px" height="200px" style="background: green"></mspace></math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>space</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#mspace">
|
||||
<link rel="match" href="mspace-children-ref.html"/>
|
||||
<meta name="assert" content="Verify mspace visual rendering of its children">
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if you see a green square and no text.</p>
|
||||
<math><mspace width="200px" height="200px" style="background: green">Text Node <mtext>x</mtext></mspace></math>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue