summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/mozilla/tests/mathml/negative-lengths
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/mozilla/tests/mathml/negative-lengths
parentInitial commit. (diff)
downloadfirefox-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/negative-lengths')
-rw-r--r--testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-001-ref.html45
-rw-r--r--testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-001.html21
-rw-r--r--testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-002-ref.html16
-rw-r--r--testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-002.html19
-rw-r--r--testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-lspace-rspace-001-ref.xhtml9
-rw-r--r--testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-lspace-rspace-001.xhtml16
-rw-r--r--testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-mspace-1-ref.html25
-rw-r--r--testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-mspace-1.html30
8 files changed, 181 insertions, 0 deletions
diff --git a/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-001-ref.html b/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-001-ref.html
new file mode 100644
index 0000000000..8ec9adf808
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-001-ref.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test mpadded</title>
+ <style type="text/css">
+ div#square1 {
+ position:absolute;
+ width: 20px;
+ height: 20px;
+ left: -25px;
+ top: 25px;
+ background: red;
+ }
+ div#square2 {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ left: 40px;
+ top:30px;
+ background: blue;
+ }
+
+ div#square3 {
+ position:absolute;
+ width: 200px;
+ height: 200px;
+ background: green;
+ }
+ /* left = lspace = -25;
+ top = HeightBig - HeightSmall - voffsetSmall
+ = 50 - 10 - 15 = 25px */
+ /* left = lsapce = 40px;
+ top = HeightVeryBig - HeightBig - voffsetBig
+ = 100 - 50 - 20 = 30px */
+ </style>
+ </head>
+ <body>
+ <div id="square3">
+ <div id="square2">
+ <div id="square1">
+ </div>
+ </div>
+ </div>
+ </body>
+<html>
diff --git a/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-001.html b/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-001.html
new file mode 100644
index 0000000000..0842d97eb9
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-001.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test mpadded</title>
+ <meta name="assert" content="Verify negative mpadded@lspace.">
+ <link rel="match" href="mpadded-negative-attributes-001-ref.html">
+ </head>
+ <body>
+ <math>
+ <mpadded mathbackground="green" width="200px" height="100px" depth="100px"
+ lspace="40px" voffset="20px">
+ <mpadded mathbackground="blue" width="100px" height="50px" depth="50px"
+ lspace="-25px" voffset="15px">
+ <mpadded mathbackground="red" width="20px" height="10px"
+ depth="10px">
+ </mpadded>
+ </mpadded>
+ </mpadded>
+ </math>
+ </body>
+</html>
diff --git a/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-002-ref.html b/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-002-ref.html
new file mode 100644
index 0000000000..31ae7f2491
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-002-ref.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test mpadded</title>
+ </head>
+ <body>
+ <math>
+ <mpadded mathbackground="blue" width="100px" height="100px" depth="0px"
+ lspace="20px" voffset="10px">
+ <mpadded mathbackground="red" width="20px" height="10px"
+ depth="10px">
+ </mpadded>
+ </mpadded>
+ </math>
+ </body>
+</html>
diff --git a/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-002.html b/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-002.html
new file mode 100644
index 0000000000..b2de08e811
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/mathml/negative-lengths/mpadded-negative-attributes-002.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test mpadded</title>
+ <meta name="assert" content="Verify negative mpadded@width/height/depth.">
+ <link rel="match" href="mpadded-negative-attributes-002-ref.html">
+ </head>
+ <body>
+ <math>
+ <!--if height, depth or width is a negative value, 0px is the value applied -->
+ <mpadded mathbackground="blue" width="100px" height="100px" depth="-100px"
+ lspace="20px" voffset="10px">
+ <mpadded mathbackground="red" width="20px" height="10px"
+ depth="10px">
+ </mpadded>
+ </mpadded>
+ </math>
+ </body>
+</html>
diff --git a/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-lspace-rspace-001-ref.xhtml b/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-lspace-rspace-001-ref.xhtml
new file mode 100644
index 0000000000..86af23a887
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-lspace-rspace-001-ref.xhtml
@@ -0,0 +1,9 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<body>
+ <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mn>3</mn>
+ <mo>+</mo>
+ <mn>2</mn>
+ </math>
+</body>
+</html>
diff --git a/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-lspace-rspace-001.xhtml b/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-lspace-rspace-001.xhtml
new file mode 100644
index 0000000000..600b955a27
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-lspace-rspace-001.xhtml
@@ -0,0 +1,16 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>negative lspace/rspace</title>
+ <link rel="match" href="negative-lspace-rspace-001-ref.xhtml"/>
+ <link rel="assert" href="Verify that negative lspace/rspace are ignored."/>
+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=411227"/>
+ <link rel="help" href="https://github.com/w3c/mathml-core/issues/132"/>
+ </head>
+ <body>
+ <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mn>3</mn>
+ <mo lspace="-5pt" rspace="-4pt">+</mo>
+ <mn>2</mn>
+ </math>
+ </body>
+</html>
diff --git a/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-mspace-1-ref.html b/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-mspace-1-ref.html
new file mode 100644
index 0000000000..ccf1ed995b
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-mspace-1-ref.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>negative mspace</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ </head>
+ <body>
+ <p>
+ <math>
+ <mrow>
+ <mspace width="1em" height="1em" mathbackground="red"></mspace>
+ <mspace width="1em" height="1em" mathbackground="blue"></mspace>
+ </mrow>
+ </math>
+ </p>
+ <p>
+ <math>
+ <mrow>
+ <mspace width="1em" height="1em" mathbackground="blue"></mspace>
+ <mspace width="1em" height="1em" mathbackground="red"></mspace>
+ </mrow>
+ </math>
+ </p>
+ </body>
+</html>
diff --git a/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-mspace-1.html b/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-mspace-1.html
new file mode 100644
index 0000000000..403a98b409
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/mathml/negative-lengths/negative-mspace-1.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>negative mspace</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link rel="match" href="negative-mspace-1-ref.html"/>
+ <link rel="assert" href="Verify that negative width on an mspace element causes overlap of previous and next siblings."/>
+ <link rel="help" href="https://github.com/w3c/mathml-core/issues/132"/>
+ </head>
+ <body>
+ <p>
+ <math>
+ <mrow>
+ <mspace width="2em" height="1em" mathbackground="red"></mspace>
+ <mspace width="-1em"/>
+ <mspace width="1em" height="1em" mathbackground="blue"></mspace>
+ </mrow>
+ </math>
+ </p>
+ <p>
+ <math dir="rtl">
+ <mrow>
+ <mspace width="2em" height="1em" mathbackground="red"></mspace>
+ <mspace width="-1em"/>
+ <mspace width="1em" height="1em" mathbackground="blue"></mspace>
+ </mrow>
+ </math>
+ </p>
+ </body>
+</html>