mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 03fff324c7345277c2a581564bd972f2b5c9f74a
This commit is contained in:
parent
525d515a89
commit
c6f0951dbc
61 changed files with 1291 additions and 261 deletions
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title><mo> dynamic form</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>The test should render the same as the static reference.</p>
|
||||
|
||||
_<math><merror><mi>x</mi><mo>+</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi>x</mi><mo>+</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi>x</mi><mo>+</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi>x</mi><mo>+</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi>x</mi><mo>+</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi>x</mi><mo>+</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
_<math><merror><mo>−</mo><mi>y</mi></merror></math>_
|
||||
_<math><mo>−</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mo>−</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mo>−</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mo>−</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mo>−</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title><mo> dynamic form</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#tokenmo">
|
||||
<meta name="assert" content="This test verifies that the form of the operators (and thus their spacing) is updated when you change the child list.">
|
||||
<link rel="match" href="mo-form-dynamic-ref.html">
|
||||
|
||||
<script>
|
||||
window.addEventListener("load", () => {
|
||||
|
||||
// force initial layout so we're sure what we're testing against
|
||||
document.documentElement.getBoundingClientRect();
|
||||
|
||||
for (var i = 1; i <= 6; i++) {
|
||||
var row = document.getElementById("row" + i);
|
||||
var x = document.getElementById("x" + i);
|
||||
|
||||
x.parentNode.removeChild(x);
|
||||
|
||||
row.insertBefore(x, row.firstElementChild);
|
||||
}
|
||||
|
||||
document.documentElement.classList.remove('reftest-wait');
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>The test should render the same as the static reference.</p>
|
||||
|
||||
_<math><merror id="row1"><mo>+</mo><mi>y</mi></merror></math>_
|
||||
_<math id="row2"><mo>+</mo><mi>y</mi></math>_
|
||||
_<math><mphantom id="row3"><mo>+</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow id="row4"><mo>+</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt id="row5"><mo>+</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle id="row6"><mo>+</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
_<math><merror><mi id="x1">x</mi><mo>−</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi id="x2">x</mi><mo>−</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi id="x3">x</mi><mo>−</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi id="x4">x</mi><mo>−</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi id="x5">x</mi><mo>−</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi id="x6">x</mi><mo>−</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>form fallback</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<math>
|
||||
<mo stretchy="true">(</mo> <mspace height="3em" depth="3em"/> <mo stretchy="true">)</mo>
|
||||
<mo stretchy="true">(</mo> <mspace height="3em" depth="3em"/> <mo stretchy="true">)</mo>
|
||||
</math>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>form fallback</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#tokenmo">
|
||||
<meta name="assert" content="Verify fallback to postfix/prefix forms.">
|
||||
<link rel="match" href="mo-form-fallback-ref.html">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- The left (respectively right) parenthesis only has a prefix
|
||||
(respectively postfix) form which gives its stretchiness.
|
||||
In theory, the parenthesis in the middle of the <math> element are
|
||||
considered infix operators and should not stretch. Let's check that we
|
||||
fallback to the postfix/prefix forms and actually make them stretchy.
|
||||
This is to handle bad MathML markup that misses explicit <mrow> tags.
|
||||
-->
|
||||
|
||||
<math>
|
||||
<mo>(</mo> <mspace height="3em" depth="3em"/> <mo>)</mo>
|
||||
<mo>(</mo> <mspace height="3em" depth="3em"/> <mo>)</mo>
|
||||
</math>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,84 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>form plus/minus</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- These operators should have form "prefix" -->
|
||||
|
||||
_<math><merror><mo form="prefix" lspace="0em" rspace="0.055555em">−</mo><mi>x</mi></merror></math>_
|
||||
_<math><mo form="prefix" lspace="0em" rspace="0.055555em">−</mo><mi>x</mi></math>_
|
||||
_<math><mphantom><mo form="prefix" lspace="0em" rspace="0.055555em">−</mo><mi>x</mi></mphantom></math>_
|
||||
_<math><mrow><mo form="prefix" lspace="0em" rspace="0.055555em">−</mo><mi>x</mi></mrow></math>_
|
||||
_<math><msqrt><mo form="prefix" lspace="0em" rspace="0.055555em">−</mo><mi>x</mi></msqrt></math>_
|
||||
_<math><mstyle><mo form="prefix" lspace="0em" rspace="0.055555em">−</mo><mi>x</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mo form="prefix" lspace="0em" rspace="0.055555em">+</mo><mi>x</mi></merror></math>_
|
||||
_<math><mo form="prefix" lspace="0em" rspace="0.055555em">+</mo><mi>x</mi></math>_
|
||||
_<math><mphantom><mo form="prefix" lspace="0em" rspace="0.055555em">+</mo><mi>x</mi></mphantom></math>_
|
||||
_<math><mrow><mo form="prefix" lspace="0em" rspace="0.055555em">+</mo><mi>x</mi></mrow></math>_
|
||||
_<math><msqrt><mo form="prefix" lspace="0em" rspace="0.055555em">+</mo><mi>x</mi></msqrt></math>_
|
||||
_<math><mstyle><mo form="prefix" lspace="0em" rspace="0.055555em">+</mo><mi>x</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mo form="prefix" lspace="0em" rspace="0.055555em">±</mo><mi>x</mi></merror></math>_
|
||||
_<math><mo form="prefix" lspace="0em" rspace="0.055555em">±</mo><mi>x</mi></math>_
|
||||
_<math><mphantom><mo form="prefix" lspace="0em" rspace="0.055555em">±</mo><mi>x</mi></mphantom></math>_
|
||||
_<math><mrow><mo form="prefix" lspace="0em" rspace="0.055555em">±</mo><mi>x</mi></mrow></math>_
|
||||
_<math><msqrt><mo form="prefix" lspace="0em" rspace="0.055555em">±</mo><mi>x</mi></msqrt></math>_
|
||||
_<math><mstyle><mo form="prefix" lspace="0em" rspace="0.055555em">±</mo><mi>x</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mo form="prefix" lspace="0em" rspace="0.055555em">∓</mo><mi>x</mi></merror></math>_
|
||||
_<math><mo form="prefix" lspace="0em" rspace="0.055555em">∓</mo><mi>x</mi></math>_
|
||||
_<math><mphantom><mo form="prefix" lspace="0em" rspace="0.055555em">∓</mo><mi>x</mi></mphantom></math>_
|
||||
_<math><mrow><mo form="prefix" lspace="0em" rspace="0.055555em">∓</mo><mi>x</mi></mrow></math>_
|
||||
_<math><msqrt><mo form="prefix" lspace="0em" rspace="0.055555em">∓</mo><mi>x</mi></msqrt></math>_
|
||||
_<math><mstyle><mo form="prefix" lspace="0em" rspace="0.055555em">∓</mo><mi>x</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
<!-- These operators should have form "infix" -->
|
||||
|
||||
_<math><merror><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">−</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">−</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">−</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">−</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">−</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">−</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">+</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">+</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">+</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">+</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">+</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">+</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">±</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">±</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">±</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">±</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">±</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">±</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">∓</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">∓</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">∓</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">∓</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">∓</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi>x</mi><mo form="infix" lspace="0.22222em" rspace="0.22222em">∓</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,87 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>form plus/minus</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#tokenmo">
|
||||
<meta name="assert" content="Verifies behavior of form of plus/minus etc.">
|
||||
<link rel="match" href="mo-form-minus-plus-ref.html">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- These operators should have form "prefix" -->
|
||||
|
||||
_<math><merror><mo>−</mo><mi>x</mi></merror></math>_
|
||||
_<math><mo>−</mo><mi>x</mi></math>_
|
||||
_<math><mphantom><mo>−</mo><mi>x</mi></mphantom></math>_
|
||||
_<math><mrow><mo>−</mo><mi>x</mi></mrow></math>_
|
||||
_<math><msqrt><mo>−</mo><mi>x</mi></msqrt></math>_
|
||||
_<math><mstyle><mo>−</mo><mi>x</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mo>+</mo><mi>x</mi></merror></math>_
|
||||
_<math><mo>+</mo><mi>x</mi></math>_
|
||||
_<math><mphantom><mo>+</mo><mi>x</mi></mphantom></math>_
|
||||
_<math><mrow><mo>+</mo><mi>x</mi></mrow></math>_
|
||||
_<math><msqrt><mo>+</mo><mi>x</mi></msqrt></math>_
|
||||
_<math><mstyle><mo>+</mo><mi>x</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mo>±</mo><mi>x</mi></merror></math>_
|
||||
_<math><mo>±</mo><mi>x</mi></math>_
|
||||
_<math><mphantom><mo>±</mo><mi>x</mi></mphantom></math>_
|
||||
_<math><mrow><mo>±</mo><mi>x</mi></mrow></math>_
|
||||
_<math><msqrt><mo>±</mo><mi>x</mi></msqrt></math>_
|
||||
_<math><mstyle><mo>±</mo><mi>x</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mo>∓</mo><mi>x</mi></merror></math>_
|
||||
_<math><mo>∓</mo><mi>x</mi></math>_
|
||||
_<math><mphantom><mo>∓</mo><mi>x</mi></mphantom></math>_
|
||||
_<math><mrow><mo>∓</mo><mi>x</mi></mrow></math>_
|
||||
_<math><msqrt><mo>∓</mo><mi>x</mi></msqrt></math>_
|
||||
_<math><mstyle><mo>∓</mo><mi>x</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
<!-- These operators should have form "infix" -->
|
||||
|
||||
_<math><merror><mi>x</mi><mo>−</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi>x</mi><mo>−</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi>x</mi><mo>−</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi>x</mi><mo>−</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi>x</mi><mo>−</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi>x</mi><mo>−</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mi>x</mi><mo>+</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi>x</mi><mo>+</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi>x</mi><mo>+</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi>x</mi><mo>+</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi>x</mi><mo>+</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi>x</mi><mo>+</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mi>x</mi><mo>±</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi>x</mi><mo>±</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi>x</mi><mo>±</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi>x</mi><mo>±</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi>x</mi><mo>±</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi>x</mi><mo>±</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
<br/>
|
||||
|
||||
_<math><merror><mi>x</mi><mo>∓</mo><mi>y</mi></merror></math>_
|
||||
_<math><mi>x</mi><mo>∓</mo><mi>y</mi></math>_
|
||||
_<math><mphantom><mi>x</mi><mo>∓</mo><mi>y</mi></mphantom></math>_
|
||||
_<math><mrow><mi>x</mi><mo>∓</mo><mi>y</mi></mrow></math>_
|
||||
_<math><msqrt><mi>x</mi><mo>∓</mo><mi>y</mi></msqrt></math>_
|
||||
_<math><mstyle><mi>x</mi><mo>∓</mo><mi>y</mi></mstyle></math>_
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title><mo> form attribute</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- This checks the effect of @form on a prefix operator. -->
|
||||
_<math><mo lspace="0.27777em" rspace="0.27777em">∇</mo></math>_
|
||||
_<math><mo lspace="0.11111em" rspace="0.05555em">∇</mo></math>_
|
||||
_<math><mo lspace="0.27777em" rspace="0.27777em">∇</mo></math>_
|
||||
|
||||
<!-- This checks the effect of @form on an infix operator. -->
|
||||
_<math><mo lspace="0.22222em" rspace="0.22222em">⋉</mo></math>_
|
||||
_<math><mo lspace="0.27777em" rspace="0.27777em">⋉</mo></math>_
|
||||
_<math><mo lspace="0.27777em" rspace="0.27777em">⋉</mo></math>_
|
||||
|
||||
<!-- This checks the effect of @form on a postfix operator. -->
|
||||
_<math><mo lspace="0.27777em" rspace="0.27777em">♭</mo></math>_
|
||||
_<math><mo lspace="0.27777em" rspace="0.27777em">♭</mo></math>_
|
||||
_<math><mo lspace="0em" rspace="0.11111em">♭</mo></math>_
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title><mo> form attribute</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#tokenmo">
|
||||
<meta name="assert" content="Verifies behavior of form attribute.">
|
||||
<link rel="match" href="mo-form-ref.html">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- This checks the effect of @form on a prefix operator. -->
|
||||
_<math><mo form="infix">∇</mo></math>_
|
||||
_<math><mo form="prefix">∇</mo></math>_
|
||||
_<math><mo form="postfix">∇</mo></math>_
|
||||
|
||||
<!-- This checks the effect of @form on an infix operator. -->
|
||||
_<math><mo form="infix">⋉</mo></math>_
|
||||
_<math><mo form="prefix">⋉</mo></math>_
|
||||
_<math><mo form="postfix">⋉</mo></math>_
|
||||
|
||||
<!-- This checks the effect of @form on a postfix operator. -->
|
||||
_<math><mo form="infix">♭</mo></math>_
|
||||
_<math><mo form="prefix">♭</mo></math>_
|
||||
_<math><mo form="postfix">♭</mo></math>_
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue