diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-phasorangle.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-phasorangle.html')
-rw-r--r-- | testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-phasorangle.html | 46 |
1 files changed, 46 insertions, 0 deletions
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> |