diff options
Diffstat (limited to 'testing/web-platform/mozilla/tests/mathml/menclose')
114 files changed, 2842 insertions, 0 deletions
diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1-ref.html new file mode 100644 index 0000000000..2302a2b8d8 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1-ref.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation=""> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1a.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1a.html new file mode 100644 index 0000000000..bbf7c780fe --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1a.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="longdiv"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1b.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1b.html new file mode 100644 index 0000000000..3e0675f73e --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1b.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="actuarial"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1d.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1d.html new file mode 100644 index 0000000000..4fe5e9b68b --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1d.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="box"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1e.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1e.html new file mode 100644 index 0000000000..10761f394a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1e.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="roundedbox"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1f.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1f.html new file mode 100644 index 0000000000..4dbde38a5e --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1f.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="circle"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1g.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1g.html new file mode 100644 index 0000000000..0a5ffa1df0 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1g.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="left"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1h.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1h.html new file mode 100644 index 0000000000..038d2e64d4 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1h.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="right"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1i.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1i.html new file mode 100644 index 0000000000..ee4070402c --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1i.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="top"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1j.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1j.html new file mode 100644 index 0000000000..e1f7fcac2f --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1j.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="bottom"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1k.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1k.html new file mode 100644 index 0000000000..296b97dee0 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1k.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="updiagonalstrike"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1l.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1l.html new file mode 100644 index 0000000000..7ba2a7d312 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1l.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="downdiagonalstrike"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1m.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1m.html new file mode 100644 index 0000000000..de7223a55e --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1m.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="verticalstrike"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1n.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1n.html new file mode 100644 index 0000000000..0578ee9237 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1n.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="horizontalstrike"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1o.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1o.html new file mode 100644 index 0000000000..17f7a6b183 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1o.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="madruwb"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1p.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1p.html new file mode 100644 index 0000000000..e4f6b2dcc4 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1p.html @@ -0,0 +1,22 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="updiagonalarrow"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1q.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1q.html new file mode 100644 index 0000000000..5bb1930c48 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-1q.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <link rel="mismatch" href="menclose-1-ref.html"/> + </head> + <body> + <math> + <menclose notation="phasorangle"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-actuarial-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-actuarial-ref.html new file mode 100644 index 0000000000..b63e84ac84 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-actuarial-ref.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose actuarial</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + + "L" + ((box.width+box.left) + "," + box.top) + + "L" + ((box.width+box.left) + "," + box.bottom )); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="actuarial"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-actuarial.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-actuarial.html new file mode 100644 index 0000000000..2fb3abcc73 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-actuarial.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose actuarial</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-actuarial-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + + "L" + ((box.width+box.left) + "," + box.top) + + "L" + ((box.width+box.left) + "," + box.bottom )); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="actuarial"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-bottom-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-bottom-ref.html new file mode 100644 index 0000000000..491e223f94 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-bottom-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose bottom</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.height)) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="bottom"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-bottom.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-bottom.html new file mode 100644 index 0000000000..a0e6018c76 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-bottom.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose bottom</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-bottom-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.height)) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="bottom"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-box-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-box-ref.html new file mode 100644 index 0000000000..20bad27489 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-box-ref.html @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose box</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + r = document.getElementById("rect"); + r.setAttribute("x", box.left ); + r.setAttribute("y", box.top ); + r.setAttribute("width", box.width ); + r.setAttribute("height", box.height ); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="box"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <rect id="rect" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></rect> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-box.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-box.html new file mode 100644 index 0000000000..dc5ed38dc9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-box.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose box</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-box-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + r = document.getElementById("rect"); + r.setAttribute("x", box.left ); + r.setAttribute("y", box.top ); + r.setAttribute("width", box.width ); + r.setAttribute("height", box.height ); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="box"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <rect id="rect" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></rect> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-circle-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-circle-ref.html new file mode 100644 index 0000000000..f1b98e7864 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-circle-ref.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose circle</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("circle").getBoundingClientRect(); + e = document.getElementById("ellipse"); + e.setAttribute("cx", (box.left + box.width/2)); + e.setAttribute("rx", (box.width/2)); + e.setAttribute("cy", (box.top + box.height/2)); + e.setAttribute("ry", (box.height/2)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="circle" notation="circle"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <ellipse id="ellipse" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></ellipse> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-circle.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-circle.html new file mode 100644 index 0000000000..58b627add2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-circle.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose circle</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-circle-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("circle").getBoundingClientRect(); + e = document.getElementById("ellipse"); + e.setAttribute("cx", (box.left + box.width/2)); + e.setAttribute("rx", (box.width/2)); + e.setAttribute("cy", (box.top + box.height/2)); + e.setAttribute("ry", (box.height/2)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="circle" notation="circle"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <ellipse id="ellipse" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></ellipse> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-downdiagonalstrike-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-downdiagonalstrike-ref.html new file mode 100644 index 0000000000..bc7aad0ea8 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-downdiagonalstrike-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose downdiagonalstrike</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (box.width + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="downdiagonalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-downdiagonalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-downdiagonalstrike.html new file mode 100644 index 0000000000..257dc36c3b --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-downdiagonalstrike.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose downdiagonalstrike</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-downdiagonalstrike-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (box.width + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="downdiagonalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-horizontalstrike-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-horizontalstrike-ref.html new file mode 100644 index 0000000000..973d1fc752 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-horizontalstrike-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose horizontalstrike</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.bottom)/2 ) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="horizontalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;" ></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-horizontalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-horizontalstrike.html new file mode 100644 index 0000000000..3db832d8d6 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-horizontalstrike.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose horizontalstrike</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-horizontalstrike-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.bottom)/2 ) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="horizontalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-left-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-left-ref.html new file mode 100644 index 0000000000..760ef8a89f --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-left-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose left</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="left"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-left.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-left.html new file mode 100644 index 0000000000..d1b554ec62 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-left.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose left</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-left-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="left"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-longdiv-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-longdiv-ref.html new file mode 100644 index 0000000000..b67504af50 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-longdiv-ref.html @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose longdiv</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + var x = " " + box.left + "," + box.top + " " ; + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.height)) + + "Q" + ((box.left + 15) + "," + (box.top + box.height)/2) + x + + "L" + ((box.left + box.width) + "," + box.top)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="longdiv"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 1em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-longdiv.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-longdiv.html new file mode 100644 index 0000000000..fa12b8934d --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-longdiv.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose longdiv</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-longdiv-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + var x = " " + box.left + "," + box.top + " " ; + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.height)) + + "Q" + ((box.left + 15) + "," + (box.top + box.height)/2) + x + + "L" + ((box.left + box.width) + "," + box.top)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="longdiv"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 1em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-phasorangle-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-phasorangle-ref.html new file mode 100644 index 0000000000..b3d91a9fbe --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-phasorangle-ref.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose phasorangle</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + var w = 8 * 2; // kPhasorangleWidth * rulethickness + var H = 2 * w; // slope 2 + + document.getElementById("path").setAttribute("d", + "M" + (box.right + "," + box.bottom) + + "L" + (box.left + "," + box.bottom ) + + "l" + ((w) + "," + (-H))); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="phasorangle"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-phasorangle.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-phasorangle.html new file mode 100644 index 0000000000..55b3dc2faf --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-phasorangle.html @@ -0,0 +1,46 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose phasorangle</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-phasorangle-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + var w = 8 * 2; // kPhasorangleWidth * rulethickness + var H = 2 * w; // slope 2 + + document.getElementById("path").setAttribute("d", + "M" + (box.right + "," + box.bottom) + + "L" + (box.left + "," + box.bottom ) + + "l" + ((w) + "," + (-H))); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="phasorangle"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-right-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-right-ref.html new file mode 100644 index 0000000000..acd3e30dd2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-right-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose right</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + ((box.left + box.width) + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="right"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-right.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-right.html new file mode 100644 index 0000000000..b64ca8cc96 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-right.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose right</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-right-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + ((box.left + box.width) + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="right"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-roundedbox-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-roundedbox-ref.html new file mode 100644 index 0000000000..c1f0225036 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-roundedbox-ref.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <meta charset="utf-8"/> + <title>menclose roundedbox</title> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, #box { + font: 25px/1 Ahem; + } + </style> + + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("roundedbox").getBoundingClientRect(); + r = document.getElementById("box"); + r.style.left = `calc(${box.left}px - .25em)`; + r.style.top = `calc(${box.top}px - .25em)` + r.style.width = `calc(${box.width}px + .5em)`; + r.style.height = `calc(${box.height}px + .5em)`; + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="roundedbox" notation="roundedbox"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div id="box" style="position: absolute; box-sizing: border-box; border:.5em solid green; border-radius: .5em;"></div> +</div> + +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-roundedbox.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-roundedbox.html new file mode 100644 index 0000000000..f31e696ce1 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-roundedbox.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <meta charset="utf-8"/> + <title>menclose roundedbox</title> + <link rel="match" href="menclose-2-roundedbox-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, #box { + font: 25px/1 Ahem; + } + </style> + + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("roundedbox").getBoundingClientRect(); + r = document.getElementById("box"); + r.style.left = `calc(${box.left}px - .25em)`; + r.style.top = `calc(${box.top}px - .25em)` + r.style.width = `calc(${box.width}px + .5em)`; + r.style.height = `calc(${box.height}px + .5em)`; + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="roundedbox" notation="roundedbox"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div id="box" style="position: absolute; box-sizing: border-box; border:.5em solid green; border-radius: .5em;"></div> +</div> + +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-top-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-top-ref.html new file mode 100644 index 0000000000..31ea1d8c7e --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-top-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose top</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="top"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-top.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-top.html new file mode 100644 index 0000000000..a135a21afc --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-top.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose top</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-top-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="top"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalarrow-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalarrow-ref.html new file mode 100644 index 0000000000..5e1c37317b --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalarrow-ref.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalarrow</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.height + box.top)) + + "L" + ((box.width + box.left) + "," + box.top) + + "l -15,0 l0,+15 l+15,0 l0,-15"); // try and hide the arrow head with a square. + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="updiagonalarrow"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalarrow.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalarrow.html new file mode 100644 index 0000000000..f0d4fb1dbf --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalarrow.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalarrow</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-updiagonalarrow-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.height + box.top)) + + "L" + ((box.width + box.left) + "," + box.top) + + "l -15,0 l0,+15 l+15,0 l0,-15"); // try and hide the arrow head with a square. + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="updiagonalarrow"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalstrike-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalstrike-ref.html new file mode 100644 index 0000000000..dc99162c34 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalstrike-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalstrike</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.bottom) + " " + + "l" + (box.width + "," + (-box.height))); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="updiagonalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalstrike.html new file mode 100644 index 0000000000..5ab256e5f2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-updiagonalstrike.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalstrike</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-updiagonalstrike-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.bottom) + " " + + "l" + (box.width + "," + (-box.height))); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="updiagonalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-verticalstrike-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-verticalstrike-ref.html new file mode 100644 index 0000000000..d5ba9ff227 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-verticalstrike-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose verticalstrike</title> + <meta charset="utf-8"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + ((box.right + box.left)/2 + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="verticalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-verticalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-verticalstrike.html new file mode 100644 index 0000000000..b40a452bbe --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-verticalstrike.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose verticalstrike</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-2-verticalstrike-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + math, svg { + font: 25px/1 Ahem; + } + </style> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + ((box.right + box.left)/2 + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="verticalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-box-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-box-ref.html new file mode 100644 index 0000000000..0d718ee05c --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-box-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose box</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="left top right bottom"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-box.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-box.html new file mode 100644 index 0000000000..a28ba547cf --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-box.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose box</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-3-box-ref.html"/> + </head> + + <body> + <math> + <menclose notation="box"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-default-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-default-ref.html new file mode 100644 index 0000000000..db9d4375ad --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-default-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose default</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-default.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-default.html new file mode 100644 index 0000000000..f1f8be193c --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-default.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose default</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-3-default-ref.html"/> + </head> + + <body> + <math> + <menclose notation="longdiv"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-invalid-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-invalid-ref.html new file mode 100644 index 0000000000..dc0740763d --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-invalid-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose invalid</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-invalid.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-invalid.html new file mode 100644 index 0000000000..e210c97fb0 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-invalid.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose invalid</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-3-invalid-ref.html"/> + </head> + + <body> + <math> + <menclose notation="not_a_vaild_notation"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-madruwb-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-madruwb-ref.html new file mode 100644 index 0000000000..58ed5903b4 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-madruwb-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test menclose madruwb</title> + <meta charset="utf-8"/> + </head> + + <body> + <!-- menclose: madruwb --> + <math> + <menclose notation="right bottom"><mi>x</mi></menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-madruwb.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-madruwb.html new file mode 100644 index 0000000000..ff8e4540bf --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-madruwb.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test menclose madruwb</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-3-madruwb-ref.html"/> + </head> + + <body> + <!-- menclose: madruwb --> + <math> + <menclose notation="madruwb"><mi>x</mi></menclose> + </math> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-multiple-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-multiple-ref.html new file mode 100644 index 0000000000..c42a504bb2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-multiple-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose multiple</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="top top left circle"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-multiple.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-multiple.html new file mode 100644 index 0000000000..ea8b77f7fa --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-multiple.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose multiple</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-3-multiple-ref.html"/> + </head> + + <body> + <math> + <menclose notation="circle left top"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-unknown-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-unknown-ref.html new file mode 100644 index 0000000000..20f3a72eb9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-unknown-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose unknown</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="circle"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-unknown.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-unknown.html new file mode 100644 index 0000000000..16587da798 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-3-unknown.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose unknown</title> + <meta charset="utf-8"/> + <link rel="match" href="menclose-3-unknown-ref.html"/> + </head> + + <body> + <math> + <menclose notation="circle unknown"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-4.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-4.html new file mode 100644 index 0000000000..1b27e96af9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-4.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose inner and outer circle</title> + <meta charset="utf-8"/> + <link rel="match" href="data:text/html,<body>Pass"/> + <script type="text/javascript"> + function doTest() + { + var box1 = document.getElementById("outer").getBoundingClientRect(); + var box2 = document.getElementById("inner").getBoundingClientRect(); + var epsilon = 0.1; + if ((box1.width >= ((Math.sqrt(2) - epsilon)*box2.width)) && (box1.height >= ((Math.sqrt(2) - epsilon)*box2.height))) { + document.body.innerHTML = "Pass"; + } + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="outer" notation="circle"> + <mspace id="inner" width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-actuarial-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-actuarial-ref.html new file mode 100644 index 0000000000..2369d4e232 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-actuarial-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose actuarial</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="actuarial"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-actuarial.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-actuarial.html new file mode 100644 index 0000000000..707a8e7933 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-actuarial.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose actuarial</title> + <link rel="match" href="menclose-5-actuarial-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","actuarial"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-bottom-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-bottom-ref.html new file mode 100644 index 0000000000..5165333ddd --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-bottom-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose bottom</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="bottom"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-bottom.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-bottom.html new file mode 100644 index 0000000000..aab45e679f --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-bottom.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose bottom</title> + <link rel="match" href="menclose-5-bottom-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","bottom"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-box-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-box-ref.html new file mode 100644 index 0000000000..dfe4a3d0f3 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-box-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose box</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="box"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-box.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-box.html new file mode 100644 index 0000000000..548f8b5e65 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-box.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose box</title> + <link rel="match" href="menclose-5-box-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","box"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-circle-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-circle-ref.html new file mode 100644 index 0000000000..2132e0ebfd --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-circle-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose circle</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="circle"><mspace width="100px" height="50px"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-circle.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-circle.html new file mode 100644 index 0000000000..fdbc0b4d97 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-circle.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose circle</title> + <link rel="match" href="menclose-5-circle-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","circle"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-downdiagonalstrike-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-downdiagonalstrike-ref.html new file mode 100644 index 0000000000..b37bfd0ffb --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-downdiagonalstrike-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose downdiagonalstrike</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="downdiagonalstrike"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-downdiagonalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-downdiagonalstrike.html new file mode 100644 index 0000000000..82c89e6c9d --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-downdiagonalstrike.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose downdiagonalstrike</title> + <link rel="match" href="menclose-5-downdiagonalstrike-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","downdiagonalstrike"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-horizontalstrike-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-horizontalstrike-ref.html new file mode 100644 index 0000000000..777314e09e --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-horizontalstrike-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose horizontalstrike</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="horizontalstrike"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-horizontalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-horizontalstrike.html new file mode 100644 index 0000000000..fc2ee04284 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-horizontalstrike.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose horizontalstrike</title> + <link rel="match" href="menclose-5-horizontalstrike-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","horizontalstrike"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-left-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-left-ref.html new file mode 100644 index 0000000000..7c27e231eb --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-left-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose left</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="left"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-left.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-left.html new file mode 100644 index 0000000000..5f5b98af2a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-left.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose left</title> + <link rel="match" href="menclose-5-left-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","left"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-longdiv-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-longdiv-ref.html new file mode 100644 index 0000000000..1c1763fd1e --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-longdiv-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose longdiv</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="longdiv"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-longdiv.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-longdiv.html new file mode 100644 index 0000000000..0444bd5fbc --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-longdiv.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose longdiv</title> + <link rel="match" href="menclose-5-longdiv-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","longdiv"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-madruwb-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-madruwb-ref.html new file mode 100644 index 0000000000..0aeb0396d3 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-madruwb-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose madruwb</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="madruwb"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-madruwb.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-madruwb.html new file mode 100644 index 0000000000..cdd150ac3e --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-madruwb.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose madruwb</title> + <link rel="match" href="menclose-5-madruwb-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","madruwb"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-phasorangle-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-phasorangle-ref.html new file mode 100644 index 0000000000..5fde01d685 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-phasorangle-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose actuarial</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="phasorangle"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-phasorangle.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-phasorangle.html new file mode 100644 index 0000000000..098a8a24d9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-phasorangle.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose phasorangle</title> + <link rel="match" href="menclose-5-phasorangle-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","phasorangle"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-right-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-right-ref.html new file mode 100644 index 0000000000..059a8b983d --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-right-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose right</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="right"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-right.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-right.html new file mode 100644 index 0000000000..f337bdaeb7 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-right.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose right</title> + <link rel="match" href="menclose-5-right-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","right"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-roundedbox-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-roundedbox-ref.html new file mode 100644 index 0000000000..cd696e8249 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-roundedbox-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose roundedbox</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="roundedbox"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-roundedbox.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-roundedbox.html new file mode 100644 index 0000000000..86a89c4626 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-roundedbox.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose roundedbox</title> + <link rel="match" href="menclose-5-roundedbox-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","roundedbox"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-top-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-top-ref.html new file mode 100644 index 0000000000..7799e08457 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-top-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose top</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="top"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-top.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-top.html new file mode 100644 index 0000000000..a173f8354f --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-top.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose top</title> + <link rel="match" href="menclose-5-top-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","top"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalarrow-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalarrow-ref.html new file mode 100644 index 0000000000..6de10f03c9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalarrow-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose updiagonalarrow</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="updiagonalarrow"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalarrow.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalarrow.html new file mode 100644 index 0000000000..ba5409f0e9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalarrow.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalarrow</title> + <link rel="match" href="menclose-5-updiagonalarrow-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","updiagonalarrow"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalstrike-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalstrike-ref.html new file mode 100644 index 0000000000..24599bbdfd --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalstrike-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose updiagonalstrike</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="updiagonalstrike"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalstrike.html new file mode 100644 index 0000000000..3a093b3540 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-updiagonalstrike.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalstrike</title> + <link rel="match" href="menclose-5-updiagonalstrike-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","updiagonalstrike"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-verticalstrike-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-verticalstrike-ref.html new file mode 100644 index 0000000000..50b7112912 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-verticalstrike-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose verticalstrike</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="verticalstrike"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-verticalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-verticalstrike.html new file mode 100644 index 0000000000..561c35c498 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-5-verticalstrike.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose verticalstrike</title> + <link rel="match" href="menclose-5-verticalstrike-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","verticalstrike"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-actuarial.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-actuarial.html new file mode 100644 index 0000000000..61eee24010 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-actuarial.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose actuarial</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="actuarial"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-bottom.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-bottom.html new file mode 100644 index 0000000000..af473d04c3 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-bottom.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose bottom</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="bottom"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-box.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-box.html new file mode 100644 index 0000000000..1cee2eb15b --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-box.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose box</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="box"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-circle.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-circle.html new file mode 100644 index 0000000000..933e4b55c6 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-circle.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose circle</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="circle"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-downdiagonalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-downdiagonalstrike.html new file mode 100644 index 0000000000..8ec61c14cc --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-downdiagonalstrike.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose downdiagonalstrike</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="downdiagonalstrike"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-horizontalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-horizontalstrike.html new file mode 100644 index 0000000000..5b5387ae22 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-horizontalstrike.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose horizontalstrike</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="horizontalstrike"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-left.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-left.html new file mode 100644 index 0000000000..33bdef7ebc --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-left.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose left</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="left"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-longdiv.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-longdiv.html new file mode 100644 index 0000000000..95d71ce4c0 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-longdiv.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose longdiv</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="longdiv"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-madruwb.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-madruwb.html new file mode 100644 index 0000000000..6129e2f027 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-madruwb.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose madruwb</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="madruwb"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-phasorangle.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-phasorangle.html new file mode 100644 index 0000000000..2069642661 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-phasorangle.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose phasorangle</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <p> + <math> + <menclose id="testMenclose" notation="phasorangle"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-ref.html new file mode 100644 index 0000000000..d8fbb7e3d9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose 6 reference</title> + </head> + <body> + <p> + <math><menclose><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-right.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-right.html new file mode 100644 index 0000000000..8da33e29e2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-right.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose right</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="right"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-roundedbox.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-roundedbox.html new file mode 100644 index 0000000000..3564769d9a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-roundedbox.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose roundedbox</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="roundedbox"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-top.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-top.html new file mode 100644 index 0000000000..17fdaa14af --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-top.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose top</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="top"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-updiagonalarrow.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-updiagonalarrow.html new file mode 100644 index 0000000000..22c8c1163d --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-updiagonalarrow.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalarrow</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="updiagonalarrow"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-updiagonalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-updiagonalstrike.html new file mode 100644 index 0000000000..38d614b742 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-updiagonalstrike.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalstrike</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="updiagonalstrike"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-verticalstrike.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-verticalstrike.html new file mode 100644 index 0000000000..d44df0857c --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-6-verticalstrike.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose verticalstrike</title> + <link rel="match" href="menclose-6-ref.html"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered",doTest); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="verticalstrike"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-dir-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-dir-ref.html new file mode 100644 index 0000000000..8a1c908c14 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-dir-ref.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + <p> + menclose: + <math> + <menclose> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + <p> + menclose notation="left": + <math> + <menclose notation="left"> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + <p> + menclose notation="right": + <math> + <menclose notation="right"> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + <p> + menclose notation="updiagonalstrike": + <math> + <menclose notation="updiagonalstrike"> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + <p> + menclose notation="downdiagonalstrike": + <math> + <menclose notation="downdiagonalstrike"> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-dir.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-dir.html new file mode 100644 index 0000000000..c344e73107 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-dir.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test dir=rtl</title> + <link rel="match" href="menclose-dir-ref.html"/> + </head> + <body> + <p> + menclose: + <math dir="rtl"> + <menclose> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + <p> + menclose notation="left": + <math dir="rtl"> + <menclose notation="left"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + <p> + menclose notation="right": + <math dir="rtl"> + <menclose notation="right"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + <p> + menclose notation="updiagonalstrike": + <math dir="rtl"> + <menclose notation="updiagonalstrike"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + <p> + menclose notation="downdiagonalstrike": + <math dir="rtl"> + <menclose notation="downdiagonalstrike"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/menclose-in-mphantom-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-in-mphantom-ref.html new file mode 100644 index 0000000000..2cc362f91a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/menclose-in-mphantom-ref.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <head> + <title>mphantom</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- <mphantom> should be invisible. --> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/mstyle-notation-ref.html b/testing/web-platform/mozilla/tests/mathml/menclose/mstyle-notation-ref.html new file mode 100644 index 0000000000..b3bfa6a077 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/mstyle-notation-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>notation attribute on mstyle (reference)</title> + </head> + <body> + <math> + <mstyle> + <menclose> + <mtext>menclose</mtext> + </menclose> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/menclose/mstyle-notation.html b/testing/web-platform/mozilla/tests/mathml/menclose/mstyle-notation.html new file mode 100644 index 0000000000..c74f0075a0 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/menclose/mstyle-notation.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>notation attribute on mstyle</title> + <link rel="match" href="mstyle-notation-ref.html"/> + <meta name="assert" content="notation attribute on mstyle does not apply to menclose descendants."> + </head> + <body> + <math> + <mstyle notation="box"> + <menclose> + <mtext>menclose</mtext> + </menclose> + </mstyle> + </math> + </body> +</html> |