diff options
Diffstat (limited to 'testing/web-platform/mozilla/tests/mathml/tables')
84 files changed, 8384 insertions, 0 deletions
diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1-ref.html new file mode 100644 index 0000000000..e5ea01a7de --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1-ref.html @@ -0,0 +1,77 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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> + + <math> + <mtable> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>6</mn> + </mtd> + <mtd> + <mn>7</mn> + </mtd> + <mtd> + <mn>8</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>9</mn> + </mtd> + <mtd> + <mn>10</mn> + </mtd> + <mtd> + <mn>11</mn> + </mtd> + <mtd> + <mn>12</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>13</mn> + </mtd> + <mtd> + <mn>14</mn> + </mtd> + <mtd> + <mn>15</mn> + </mtd> + <mtd> + <mn>16</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1a.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1a.html new file mode 100644 index 0000000000..c642df9ebb --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1a.html @@ -0,0 +1,78 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="match" href="columnlines-1-ref.html"/> + </head> + + <body> + + <math> + <mtable columnlines="none"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>6</mn> + </mtd> + <mtd> + <mn>7</mn> + </mtd> + <mtd> + <mn>8</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>9</mn> + </mtd> + <mtd> + <mn>10</mn> + </mtd> + <mtd> + <mn>11</mn> + </mtd> + <mtd> + <mn>12</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>13</mn> + </mtd> + <mtd> + <mn>14</mn> + </mtd> + <mtd> + <mn>15</mn> + </mtd> + <mtd> + <mn>16</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1b.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1b.html new file mode 100644 index 0000000000..291f3e229a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1b.html @@ -0,0 +1,78 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="columnlines-1-ref.html"/> + </head> + + <body> + + <math> + <mtable columnlines="solid"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>6</mn> + </mtd> + <mtd> + <mn>7</mn> + </mtd> + <mtd> + <mn>8</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>9</mn> + </mtd> + <mtd> + <mn>10</mn> + </mtd> + <mtd> + <mn>11</mn> + </mtd> + <mtd> + <mn>12</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>13</mn> + </mtd> + <mtd> + <mn>14</mn> + </mtd> + <mtd> + <mn>15</mn> + </mtd> + <mtd> + <mn>16</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1c.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1c.html new file mode 100644 index 0000000000..b6bdc39342 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-1c.html @@ -0,0 +1,78 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="columnlines-1-ref.html"/> + </head> + + <body> + + <math> + <mtable columnlines="dashed"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>6</mn> + </mtd> + <mtd> + <mn>7</mn> + </mtd> + <mtd> + <mn>8</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>9</mn> + </mtd> + <mtd> + <mn>10</mn> + </mtd> + <mtd> + <mn>11</mn> + </mtd> + <mtd> + <mn>12</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>13</mn> + </mtd> + <mtd> + <mn>14</mn> + </mtd> + <mtd> + <mn>15</mn> + </mtd> + <mtd> + <mn>16</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-2-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-2-ref.html new file mode 100644 index 0000000000..84c96c5fe3 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-2-ref.html @@ -0,0 +1,41 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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> + + <math> + <mtable columnlines="solid none dashed dashed dashed"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>*</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-2a.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-2a.html new file mode 100644 index 0000000000..9b4b681b36 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-2a.html @@ -0,0 +1,42 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="match" href="columnlines-2-ref.html"/> + </head> + + <body> + + <math> + <mtable columnlines="solid none dashed"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>*</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-2b.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-2b.html new file mode 100644 index 0000000000..db595557dd --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-2b.html @@ -0,0 +1,42 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="match" href="columnlines-2-ref.html"/> + </head> + + <body> + + <math> + <mtable columnlines="solid none dashed dashed dashed solid solid none solid none"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>*</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-1-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-1-ref.html new file mode 100644 index 0000000000..ce49f5dad4 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-1-ref.html @@ -0,0 +1,32 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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> + + <div style="position: absolute; top: 5px; left: 5px;"> + <math> + <mtable columnlines="dashed"> + <mtr> + <mtd><mspace height="150px"></mspace></mtd> + <mtd><mspace height="150px"></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 0px; + width: 50px; height: 50px; background: red;"></div> + + <div style="position: absolute; top: 115px; left: 0px; + width: 50px; height: 55px; background: red;"></div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-1.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-1.html new file mode 100644 index 0000000000..d919933c21 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-1.html @@ -0,0 +1,49 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="columnlines-3-1-ref.html"/> + </head> + + <body> + + <!-- We assume there is a gap of more than 1px between dashes. Hence + putting two dashed lines with only one pixel of difference in their + vertical coordinates should not render the same as one dashed line + alone. The opposite is true for continuous line. + The red squares allow to ignore the difference at the bounds --> + + <div style="position: absolute; top: 5px; left: 5px;"> + <math> + <mtable columnlines="dashed"> + <mtr> + <mtd><mspace height="150px"></mspace></mtd> + <mtd><mspace height="150px"></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 6px; left: 5px;"> + <math> + <mtable columnlines="dashed"> + <mtr> + <mtd><mspace height="150px"></mspace></mtd> + <mtd><mspace height="150px"></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 0px; + width: 50px; height: 50px; background: red;"></div> + + <div style="position: absolute; top: 115px; left: 0px; + width: 50px; height: 55px; background: red;"></div> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-2-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-2-ref.html new file mode 100644 index 0000000000..6549ad5263 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-2-ref.html @@ -0,0 +1,32 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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> + + <div style="position: absolute; top: 5px; left: 5px;"> + <math> + <mtable columnlines="solid"> + <mtr> + <mtd><mspace height="150px"></mspace></mtd> + <mtd><mspace height="150px"></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 0px; + width: 50px; height: 50px; background: red;"></div> + + <div style="position: absolute; top: 115px; left: 0px; + width: 50px; height: 55px; background: red;"></div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-2.html b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-2.html new file mode 100644 index 0000000000..e95de7c581 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/columnlines-3-2.html @@ -0,0 +1,49 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="match" href="columnlines-3-2-ref.html"/> + </head> + + <body> + + <!-- We assume there is a gap of more than 1px between dashes. Hence + putting two dashed lines with only one pixel of difference in their + vertical coordinates should not render the same as one dashed line + alone. The opposite is true for continuous line. + The red squares allow to ignore the difference at the bounds --> + + <div style="position: absolute; top: 5px; left: 5px;"> + <math> + <mtable columnlines="solid"> + <mtr> + <mtd><mspace height="150px"></mspace></mtd> + <mtd><mspace height="150px"></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 6px; left: 5px;"> + <math> + <mtable columnlines="solid"> + <mtr> + <mtd><mspace height="150px"></mspace></mtd> + <mtd><mspace height="150px"></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 0px; + width: 50px; height: 50px; background: red;"></div> + + <div style="position: absolute; top: 115px; left: 0px; + width: 50px; height: 55px; background: red;"></div> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/dir-6a-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/dir-6a-ref.html new file mode 100644 index 0000000000..d66b9c2710 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/dir-6a-ref.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + + <p> + mtable: + <math> + <mtable rowspacing=""> + <mtr> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>a</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + + <p> + mtable: + <math> + <mtable frame="solid"> + <mtr> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>a</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/dir-6a.html b/testing/web-platform/mozilla/tests/mathml/tables/dir-6a.html new file mode 100644 index 0000000000..d71d289cf0 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/dir-6a.html @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test dir=rtl</title> + <link rel="match" href="dir-6a-ref.html"/> + </head> + <body> + + <p> + mtable: + <math dir="rtl"> + <mtable rowspacing=""> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + + <p> + mtable: + <math dir="rtl"> + <mtable frame="solid"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mstyle-align-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mstyle-align-ref.html new file mode 100644 index 0000000000..800ba5b2d3 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mstyle-align-ref.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>align attribute on mstyle/math</title> +<meta name="assert" content="align attribute on mstyle/math does not apply to mtable descendants." /> +<body> + <math align="baseline"> + <mstyle align="baseline"> + <mrow> + <mtext>_</mtext> + <mtable> + <mtr> + <mtd> + <mtext>―</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>―</mtext> + </mtd> + </mtr> + </mtable> + <mtext>_</mtext> + </mrow> + </mstyle> + </math> +</body> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mstyle-align.html b/testing/web-platform/mozilla/tests/mathml/tables/mstyle-align.html new file mode 100644 index 0000000000..396dbc599c --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mstyle-align.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>align attribute on mstyle/math</title> +<link rel="match" href="mstyle-align-ref.html" /> +<meta name="assert" content="align attribute on mstyle/math does not apply to mtable descendants." /> +<body> + <math align="baseline"> + <mstyle align="baseline"> + <mrow> + <mtext>_</mtext> + <mtable> + <mtr> + <mtd> + <mtext>―</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>―</mtext> + </mtd> + </mtr> + </mtable> + <mtext>_</mtext> + </mrow> + </mstyle> + </math> +</body> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber-2-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber-2-ref.html new file mode 100644 index 0000000000..0d14017e54 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber-2-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<head> +<title>mtable align attribute: negative rownumber</title> +</head> + +<body> + +<div> +<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> +<mrow> +<mtable align="axis 0"><mtr><mtd><mi> </mi></mtd></mtr> <mtr><mtd><mi> </mi></mtd></mtr> <mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr></mtable> +<mo> </mo> +<mtable align="axis 0"><mtr><mtd><mi> </mi></mtd></mtr> <mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr> <mtr><mtd><mi>d</mi></mtd> <mtd><mi>e</mi></mtd> <mtd><mi>f</mi></mtd></mtr></mtable> +<mo> </mo> +<mtable align="axis 0"><mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr> <mtr><mtd><mi>d</mi></mtd> <mtd><mi>e</mi></mtd> <mtd><mi>f</mi></mtd></mtr> <mtr><mtd><mi>g</mi></mtd> <mtd><mi>h</mi></mtd> <mtd><mi>i</mi></mtd></mtr></mtable> +</mrow> +</math> +</div> + +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber-2.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber-2.html new file mode 100644 index 0000000000..a3e5b1c7cf --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber-2.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<head> +<title>mtable align attribute: negative rownumber</title> +<link rel="match" href="mtable-align-negative-rownumber-2-ref.html"/> +</head> + +<body> + +<div> +<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> +<mrow> +<mtable align="axis -1"><mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr></mtable> +<mo> </mo> +<mtable align="axis -1"><mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr> <mtr><mtd><mi>d</mi></mtd> <mtd><mi>e</mi></mtd> <mtd><mi>f</mi></mtd></mtr></mtable> +<mo> </mo> +<mtable align="axis -1"><mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr> <mtr><mtd><mi>d</mi></mtd> <mtd><mi>e</mi></mtd> <mtd><mi>f</mi></mtd></mtr> <mtr><mtd><mi>g</mi></mtd> <mtd><mi>h</mi></mtd> <mtd><mi>i</mi></mtd></mtr></mtable> +</mrow> +</math> +</div> + +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber-ref.html new file mode 100644 index 0000000000..ebf3bf8780 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<head> +<title>mtable align attribute: negative rownumber</title> +</head> + +<body> + +<div> +<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mrow> +<mtable align="axis 3"><mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr> <mtr><mtd><mi>d</mi></mtd> <mtd><mi>e</mi></mtd> <mtd><mi>f</mi></mtd></mtr> <mtr><mtd><mi>g</mi></mtd> <mtd><mi>h</mi></mtd> <mtd><mi>i</mi></mtd></mtr></mtable><mo>=</mo> +<mtable align="axis 1"><mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr> <mtr><mtd><mi>d</mi></mtd> <mtd><mi>e</mi></mtd> <mtd><mi>f</mi></mtd></mtr> <mtr><mtd><mi>g</mi></mtd> <mtd><mi>h</mi></mtd> <mtd><mi>i</mi></mtd></mtr></mtable></mrow></math> +</div> + +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber.html new file mode 100644 index 0000000000..dc654045ab --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-negative-rownumber.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<head> +<title>mtable align attribute: negative rownumber</title> +<link rel="match" href="mtable-align-negative-rownumber-ref.html"/> +</head> + +<body> + +<div> +<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mrow> +<mtable align="axis -1"><mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr> <mtr><mtd><mi>d</mi></mtd> <mtd><mi>e</mi></mtd> <mtd><mi>f</mi></mtd></mtr> <mtr><mtd><mi>g</mi></mtd> <mtd><mi>h</mi></mtd> <mtd><mi>i</mi></mtd></mtr></mtable><mo>=</mo> +<mtable align="axis 1"><mtr><mtd><mi>a</mi></mtd> <mtd><mi>b</mi></mtd> <mtd><mi>c</mi></mtd></mtr> <mtr><mtd><mi>d</mi></mtd> <mtd><mi>e</mi></mtd> <mtd><mi>f</mi></mtd></mtr> <mtr><mtd><mi>g</mi></mtd> <mtd><mi>h</mi></mtd> <mtd><mi>i</mi></mtd></mtr></mtable></mrow></math> +</div> + +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-whitespace-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-whitespace-ref.html new file mode 100644 index 0000000000..df39badc67 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-whitespace-ref.html @@ -0,0 +1,342 @@ +<!DOCTYPE html> +<head> +<title>mtable align : WhiteSpace Check</title> + <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> + <style> + math { + font: 25px Ahem; + } + </style> +</head> + +<body> + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + +<br><br><br> + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + +</body> + +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-whitespace.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-whitespace.html new file mode 100644 index 0000000000..47d29e233a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-align-whitespace.html @@ -0,0 +1,339 @@ +<!DOCTYPE html> +<head> +<title>mtable align : WhiteSpace Check</title> + <link rel="match" href="mtable-align-whitespace-ref.html"/> + <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> + <style> + math { + font: 25px Ahem; + } + </style> +</head> + +<body> + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center-3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center-3 "> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align=" center-3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align=" center-3 "> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align=" center -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center -3 "> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align=" center -3 "> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + +<br><br><br> + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="

 center

 -3

	"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="

	 center

	 -3

	 "> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center-3

	 "> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="

	 center-3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="

	 center-3

	 "> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="

	 center

	 -3"> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mtext>X</mtext> + <mo>=</mo> + <mtable frame="solid" align="center

	 -3

	 "> + <mtr> + <mtd><mtext>A</mtext></mtd> + <mtd><mtext>B</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>C</mtext></mtd> + <mtd><mtext>D</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>E</mtext></mtd> + <mtd><mtext>F</mtext></mtd> + </mtr> + </mtable> + + </math> + +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtable-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtable-dynamic.html new file mode 100644 index 0000000000..a2e6509732 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtable-dynamic.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnalign</title> + <link rel="match" href="mtable-columnalign-multi-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + var table3 = document.getElementById("table3"); + + // Table 1 setup + table1.setAttribute("columnalign", "left center right"); + // Table 2 setup + table2.setAttribute("columnalign", "right left center"); + // Table 3 setup + table3.setAttribute("columnalign", "center right left"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>columnalign="left center right"</b> <br /> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right left center"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center right left"</b> <br /> + <math> + <mstyle> + <mtable id="table3"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtable.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtable.html new file mode 100644 index 0000000000..eb188cbe8f --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtable.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML columnalign</title> + <link rel="match" href="mtable-columnalign-multi-ref.html"/> + </head> + <body> + <b>columnalign="left center right"</b> <br /> + <math> + <mstyle> + <mtable columnalign="left center right"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right left center"</b> <br /> + <math> + <mstyle> + <mtable columnalign="right left center"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center right left"</b> <br /> + <math> + <mstyle> + <mtable columnalign="center right left"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtr-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtr-dynamic.html new file mode 100644 index 0000000000..8ed1fa7962 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtr-dynamic.html @@ -0,0 +1,156 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnalign</title> + <link rel="match" href="mtable-columnalign-multi-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + var table3 = document.getElementById("table3"); + var rows = undefined; + + // Table 1 setup + rows = table1.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("columnalign", "left center right"); + + // Table 2 setup + rows = table2.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("columnalign", "right left center"); + + // Table 3 setup + rows = table3.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("columnalign", "center right left"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>columnalign="left center right"</b> <br /> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right left center"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center right left"</b> <br /> + <math> + <mstyle> + <mtable id="table3"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtr.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtr.html new file mode 100644 index 0000000000..0c77587be6 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-mtr.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML columnalign</title> + <link rel="match" href="mtable-columnalign-multi-ref.html"/> + </head> + <body> + <b>columnalign="left center right"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr columnalign="left center right"> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr columnalign="left center right"> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr columnalign="left center right"> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right left center"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr columnalign="right left center"> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr columnalign="right left center"> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr columnalign="right left center"> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center right left"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr columnalign="center right left"> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr columnalign="center right left"> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr columnalign="center right left"> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-ref.html new file mode 100644 index 0000000000..538eb2ad11 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-multi-ref.html @@ -0,0 +1,128 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML columnalign</title> + </head> + <body> + <b>columnalign="left center right"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd columnalign="left"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="left"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="left"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right left center"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd columnalign="right"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="right"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="right"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center right left"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd columnalign="center"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="center"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="center"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtable-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtable-dynamic.html new file mode 100644 index 0000000000..eefd2b8bb2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtable-dynamic.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnalign</title> + <link rel="match" href="mtable-columnalign-single-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + var table3 = document.getElementById("table3"); + + // Table 1 setup + table1.setAttribute("columnalign", "left"); + // Table 2 setup + table2.setAttribute("columnalign", "center"); + // Table 3 setup + table3.setAttribute("columnalign", "right"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>columnalign="left"</b> <br /> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right"</b> <br /> + <math> + <mstyle> + <mtable id="table3"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtable.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtable.html new file mode 100644 index 0000000000..6bc72ef689 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtable.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML columnalign</title> + <link rel="match" href="mtable-columnalign-single-ref.html"/> + </head> + <body> + <b>columnalign="left"</b> <br /> + <math> + <mstyle> + <mtable columnalign="left"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center"</b> <br /> + <math> + <mstyle> + <mtable columnalign="center"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right"</b> <br /> + <math> + <mstyle> + <mtable columnalign="right"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtr-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtr-dynamic.html new file mode 100644 index 0000000000..bc82954d4a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtr-dynamic.html @@ -0,0 +1,156 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnalign</title> + <link rel="match" href="mtable-columnalign-single-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + var table3 = document.getElementById("table3"); + var rows = undefined; + + // Table 1 setup + rows = table1.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("columnalign", "left"); + + // Table 2 setup + rows = table2.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("columnalign", "center"); + + // Table 3 setup + rows = table3.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("columnalign", "right"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>columnalign="left"</b> <br /> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right"</b> <br /> + <math> + <mstyle> + <mtable id="table3"> + <mtr> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtr.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtr.html new file mode 100644 index 0000000000..0b52880bbf --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-mtr.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML columnalign</title> + <link rel="match" href="mtable-columnalign-single-ref.html"/> + </head> + <body> + <b>columnalign="left"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr columnalign="left"> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr columnalign="left"> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr columnalign="left"> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr columnalign="center"> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr columnalign="center"> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr columnalign="center"> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr columnalign="right"> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + <mtd> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr columnalign="right"> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + <mtd> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr columnalign="right"> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-ref.html new file mode 100644 index 0000000000..69e7627f5b --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnalign-single-ref.html @@ -0,0 +1,128 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML columnalign</title> + </head> + <body> + <b>columnalign="left"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd columnalign="left"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="left"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="left"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="left"> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="center"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd columnalign="center"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="center"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="center"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="center"> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnalign="right"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd columnalign="right"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>123</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>123</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="right"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>12345</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>12345</mtext> + </mtd> + </mtr> + <mtr> + <mtd columnalign="right"> + <mtext>1234567</mtext> + </mtd> + <mtd columnalign="right"> + <mtext>1234567</mtext> + </mtd> + <mtd> + <mtext>1234567</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-multi-mtable-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-multi-mtable-dynamic.html new file mode 100644 index 0000000000..c44f54a04d --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-multi-mtable-dynamic.html @@ -0,0 +1,106 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnlines</title> + <link rel="match" href="mtable-columnlines-multi-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + + // Table 1 setup + table1.setAttribute("columnlines", "solid dashed"); + // Table 2 setup + table2.setAttribute("columnlines", "dashed solid"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>columnlines="solid dashed"</b> <br /> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnlines="dashed solid"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-multi-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-multi-ref.html new file mode 100644 index 0000000000..f3ec936817 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-multi-ref.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML columnlines</title> + </head> + <body> + <b>columnlines="solid dashed"</b> <br /> + <math> + <mstyle> + <mtable columnlines="solid dashed"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnlines="dashed solid"</b> <br /> + <math> + <mstyle> + <mtable columnlines="dashed solid"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-single-mtable-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-single-mtable-dynamic.html new file mode 100644 index 0000000000..cc94d94179 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-single-mtable-dynamic.html @@ -0,0 +1,106 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnlines</title> + <link rel="match" href="mtable-columnlines-single-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + + // Table 1 setup + table1.setAttribute("columnlines", "solid"); + // Table 2 setup + table2.setAttribute("columnlines", "dashed"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>columnlines="solid"</b> <br /> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnlines="dashed"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-single-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-single-ref.html new file mode 100644 index 0000000000..d6fc000c77 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-columnlines-single-ref.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML columnlines</title> + </head> + <body> + <b>columnlines="solid"</b> <br /> + <math> + <mstyle> + <mtable columnlines="solid"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>columnlines="dashed"</b> <br /> + <math> + <mstyle> + <mtable columnlines="dashed"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-multi-mtable-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-multi-mtable-dynamic.html new file mode 100644 index 0000000000..f8ebe79999 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-multi-mtable-dynamic.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowalign</title> + <link rel="match" href="mtable-rowalign-multi-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + var table3 = document.getElementById("table3"); + + // Table 1 setup + table1.setAttribute("rowalign", "top center bottom"); + // Table 2 setup + table2.setAttribute("rowalign", "bottom top center"); + // Table 3 setup + table3.setAttribute("rowalign", "center bottom top"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>rowalign="top center bottom"</b> <br/> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="bottom top center"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="center bottom top"</b> <br /> + <math> + <mstyle> + <mtable id="table3"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-multi-mtable.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-multi-mtable.html new file mode 100644 index 0000000000..de8cd62e94 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-multi-mtable.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML rowalign</title> + <link rel="match" href="mtable-rowalign-multi-ref.html"/> + </head> + <body> + <b>rowalign="top center bottom"</b> <br/> + <math> + <mstyle> + <mtable rowalign="top center bottom"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="bottom top center"</b> <br /> + <math> + <mstyle> + <mtable rowalign="bottom top center"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="center bottom top"</b> <br /> + <math> + <mstyle> + <mtable rowalign="center bottom top"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-multi-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-multi-ref.html new file mode 100644 index 0000000000..6e1fc1910a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-multi-ref.html @@ -0,0 +1,128 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML rowalign</title> + </head> + <body> + <b>rowalign="top center bottom"</b> <br/> + <math> + <mstyle> + <mtable> + <mtr> + <mtd rowalign="top"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="center"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="bottom"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="bottom top center"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd rowalign="bottom"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="top"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="center"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="center bottom top"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd rowalign="center"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="bottom"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="top"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtable-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtable-dynamic.html new file mode 100644 index 0000000000..c0c66c8979 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtable-dynamic.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowalign</title> + <link rel="match" href="mtable-rowalign-single-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + var table3 = document.getElementById("table3"); + + // Table 1 setup + table1.setAttribute("rowalign", "top"); + // Table 2 setup + table2.setAttribute("rowalign", "center"); + // Table 3 setup + table3.setAttribute("rowalign", "bottom"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>rowalign="top"</b> <br/> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="center"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="bottom"</b> <br /> + <math> + <mstyle> + <mtable id="table3"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtable.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtable.html new file mode 100644 index 0000000000..2ecb4ee001 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtable.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML rowalign</title> + <link rel="match" href="mtable-rowalign-single-ref.html"/> + </head> + <body> + <b>rowalign="top"</b> <br/> + <math> + <mstyle> + <mtable rowalign="top"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="center"</b> <br /> + <math> + <mstyle> + <mtable rowalign="center"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="bottom"</b> <br /> + <math> + <mstyle> + <mtable rowalign="bottom"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtr-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtr-dynamic.html new file mode 100644 index 0000000000..cb298c8047 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtr-dynamic.html @@ -0,0 +1,156 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowalign</title> + <link rel="match" href="mtable-rowalign-single-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + var table3 = document.getElementById("table3"); + var rows = undefined; + + // Table 1 setup + rows = table1.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("rowalign", "top"); + + // Table 2 setup + rows = table2.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("rowalign", "center"); + + // Table 3 setup + rows = table3.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("rowalign", "bottom"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>rowalign="top"</b> <br/> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="center"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="bottom"</b> <br /> + <math> + <mstyle> + <mtable id="table3"> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtr.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtr.html new file mode 100644 index 0000000000..7481d29768 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtr.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML rowalign</title> + <link rel="match" href="mtable-rowalign-single-ref.html"/> + </head> + <body> + <b>rowalign="top"</b> <br/> + <math> + <mstyle> + <mtable> + <mtr rowalign="top"> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr rowalign="top"> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr rowalign="top"> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="center"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr rowalign="center"> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr rowalign="center"> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr rowalign="center"> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="bottom"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr rowalign="bottom"> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr rowalign="bottom"> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr rowalign="bottom"> + <mtd> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-ref.html new file mode 100644 index 0000000000..b343cb7b8e --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-ref.html @@ -0,0 +1,128 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML rowalign</title> + </head> + <body> + <b>rowalign="top"</b> <br/> + <math> + <mstyle> + <mtable> + <mtr> + <mtd rowalign="top"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="top"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="top"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="top"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="center"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd rowalign="center"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="center"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="center"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="center"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowalign="bottom"</b> <br /> + <math> + <mstyle> + <mtable> + <mtr> + <mtd rowalign="bottom"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="bottom"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + <mtr> + <mtd rowalign="bottom"> + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> + </mtd> + <mtd rowalign="bottom"> + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-multi-mtable-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-multi-mtable-dynamic.html new file mode 100644 index 0000000000..e00fcd3504 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-multi-mtable-dynamic.html @@ -0,0 +1,106 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowlines</title> + <link rel="match" href="mtable-rowlines-multi-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + + // Table 1 setup + table1.setAttribute("rowlines", "solid dashed"); + // Table 2 setup + table2.setAttribute("rowlines", "dashed solid"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>rowlines="solid dashed"</b> <br /> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowlines="dashed solid"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-multi-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-multi-ref.html new file mode 100644 index 0000000000..ac5f1f1c2b --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-multi-ref.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML rowlines</title> + </head> + <body> + <b>rowlines="solid dashed"</b> <br /> + <math> + <mstyle> + <mtable rowlines="solid dashed"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowlines="dashed solid"</b> <br /> + <math> + <mstyle> + <mtable rowlines="dashed solid"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-single-mtable-dynamic.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-single-mtable-dynamic.html new file mode 100644 index 0000000000..da283aaab9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-single-mtable-dynamic.html @@ -0,0 +1,106 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowlines</title> + <link rel="match" href="mtable-rowlines-single-ref.html"/> + <script type="text/javascript"> + function doTest() + { + var table1 = document.getElementById("table1"); + var table2 = document.getElementById("table2"); + + // Table 1 setup + table1.setAttribute("rowlines", "solid"); + // Table 2 setup + table2.setAttribute("rowlines", "dashed"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </head> + <body> + <b>rowlines="solid"</b> <br /> + <math> + <mstyle> + <mtable id="table1"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowlines="dashed"</b> <br /> + <math> + <mstyle> + <mtable id="table2"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-single-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-single-ref.html new file mode 100644 index 0000000000..000eaa2a24 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-rowlines-single-ref.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML rowlines</title> + </head> + <body> + <b>rowlines="solid"</b> <br /> + <math> + <mstyle> + <mtable rowlines="solid"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + <b>rowlines="dashed"</b> <br /> + <math> + <mstyle> + <mtable rowlines="dashed"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + <mtd> + <mtext>i</mtext> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> <br /> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-width-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-width-ref.html new file mode 100644 index 0000000000..d93f5a60b4 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-width-ref.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + +<div> + <math> + <mtext>|</mtext> + <mtable style="width:8em"> + <mtr> + <mtd></mtd> + </mtr> + </mtable> + <mtext>|</mtext> + </math> +</div> +<div> + <math> + <mtext>|</mtext> + <mtable style="width:30px"> + <mtr> + <mtd></mtd> + </mtr> + </mtable> + <mtext>|</mtext> + </math> +</div> +<div> + <math> + <mtext>|</mtext> + <mtable> + <mtr> + <mtd></mtd> + </mtr> + </mtable> + <mtext>|</mtext> + </math> +</div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/mtable-width.html b/testing/web-platform/mozilla/tests/mathml/tables/mtable-width.html new file mode 100644 index 0000000000..e4e705c2e6 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/mtable-width.html @@ -0,0 +1,46 @@ +<!DOCTYPE html> +<html> + <head> + <title>Check that mtable supports the width attribute</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <link rel="match" href="mtable-width-ref.html"/> + </head> + + <body> + +<div> + <math> + <mtext>|</mtext> + <mtable width="8em"> + <mtr> + <mtd></mtd> + </mtr> + </mtable> + <mtext>|</mtext> + </math> +</div> +<div> + <math> + <mtext>|</mtext> + <mtable width="30px"> + <mtr> + <mtd></mtd> + </mtr> + </mtable> + <mtext>|</mtext> + </math> +</div> +<div> + <math> + <mtext>|</mtext> + <mtable width="auto"> + <mtr> + <mtd></mtd> + </mtr> + </mtable> + <mtext>|</mtext> + </math> +</div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1-ref.html new file mode 100644 index 0000000000..e5ea01a7de --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1-ref.html @@ -0,0 +1,77 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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> + + <math> + <mtable> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>6</mn> + </mtd> + <mtd> + <mn>7</mn> + </mtd> + <mtd> + <mn>8</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>9</mn> + </mtd> + <mtd> + <mn>10</mn> + </mtd> + <mtd> + <mn>11</mn> + </mtd> + <mtd> + <mn>12</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>13</mn> + </mtd> + <mtd> + <mn>14</mn> + </mtd> + <mtd> + <mn>15</mn> + </mtd> + <mtd> + <mn>16</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1a.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1a.html new file mode 100644 index 0000000000..973f25191c --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1a.html @@ -0,0 +1,78 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="match" href="rowlines-1-ref.html"/> + </head> + + <body> + + <math> + <mtable rowlines="none"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>6</mn> + </mtd> + <mtd> + <mn>7</mn> + </mtd> + <mtd> + <mn>8</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>9</mn> + </mtd> + <mtd> + <mn>10</mn> + </mtd> + <mtd> + <mn>11</mn> + </mtd> + <mtd> + <mn>12</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>13</mn> + </mtd> + <mtd> + <mn>14</mn> + </mtd> + <mtd> + <mn>15</mn> + </mtd> + <mtd> + <mn>16</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1b.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1b.html new file mode 100644 index 0000000000..d4db5d3a97 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1b.html @@ -0,0 +1,78 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="rowlines-1-ref.html"/> + </head> + + <body> + + <math> + <mtable rowlines="solid"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>6</mn> + </mtd> + <mtd> + <mn>7</mn> + </mtd> + <mtd> + <mn>8</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>9</mn> + </mtd> + <mtd> + <mn>10</mn> + </mtd> + <mtd> + <mn>11</mn> + </mtd> + <mtd> + <mn>12</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>13</mn> + </mtd> + <mtd> + <mn>14</mn> + </mtd> + <mtd> + <mn>15</mn> + </mtd> + <mtd> + <mn>16</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1c.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1c.html new file mode 100644 index 0000000000..04488fc214 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-1c.html @@ -0,0 +1,78 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="rowlines-1-ref.html"/> + </head> + + <body> + + <math> + <mtable rowlines="dashed"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mn>2</mn> + </mtd> + <mtd> + <mn>3</mn> + </mtd> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + <mtd> + <mn>6</mn> + </mtd> + <mtd> + <mn>7</mn> + </mtd> + <mtd> + <mn>8</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>9</mn> + </mtd> + <mtd> + <mn>10</mn> + </mtd> + <mtd> + <mn>11</mn> + </mtd> + <mtd> + <mn>12</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>13</mn> + </mtd> + <mtd> + <mn>14</mn> + </mtd> + <mtd> + <mn>15</mn> + </mtd> + <mtd> + <mn>16</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-2-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-2-ref.html new file mode 100644 index 0000000000..f66962bad6 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-2-ref.html @@ -0,0 +1,51 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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> + + <math> + <mtable rowlines="none dashed solid solid solid"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>2</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>3</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>*</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-2a.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-2a.html new file mode 100644 index 0000000000..a4d73a2f55 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-2a.html @@ -0,0 +1,52 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="match" href="rowlines-2-ref.html"/> + </head> + + <body> + + <math> + <mtable rowlines="none dashed solid"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>2</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>3</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>*</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-2b.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-2b.html new file mode 100644 index 0000000000..2ac9ea8fab --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-2b.html @@ -0,0 +1,52 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="match" href="rowlines-2-ref.html"/> + </head> + + <body> + + <math> + <mtable rowlines="none dashed solid solid solid none dashed dashed none"> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>2</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>3</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>4</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>5</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>*</mn> + </mtd> + </mtr> + </mtable> + </math> + + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-1-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-1-ref.html new file mode 100644 index 0000000000..04dac8cca4 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-1-ref.html @@ -0,0 +1,40 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="stylesheet" href="/fonts/ahem.css" /> + <style> + div, math { + font: 25px/1 Ahem; + } + </style> + </head> + + <body> + + <div style="position: absolute; top: 5px; left: 5px;"> + <math> + <mtable width="150px" rowlines="dashed"> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 0px; + width: 50px; height: 50px; background: red;"></div> + + <div style="position: absolute; top: 5px; left: 110px; + width: 50px; height: 50px; background: red;"></div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-1.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-1.html new file mode 100644 index 0000000000..5d259cdbd3 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-1.html @@ -0,0 +1,60 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="rowlines-3-1-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + div, math { + font: 25px/1 Ahem; + } + </style> + </head> + + <body> + + <!-- We assume there is a gap of more than 1px between dashes. Hence + putting two dashed lines with only one pixel of difference in their + horizontal coordinates should not render the same as one dashed line + alone. The opposite is true for continuous line. + The red squares allow to ignore the difference at the bounds --> + + <div style="position: absolute; top: 5px; left: 5px;"> + <math> + <mtable width="150px" rowlines="dashed"> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 6px;"> + <math> + <mtable width="150px" rowlines="dashed"> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 0px; + width: 50px; height: 50px; background: red;"></div> + + <div style="position: absolute; top: 5px; left: 110px; + width: 50px; height: 50px; background: red;"></div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-2-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-2-ref.html new file mode 100644 index 0000000000..3375c87c9b --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-2-ref.html @@ -0,0 +1,40 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="stylesheet" href="/fonts/ahem.css" /> + <style> + div, math { + font: 25px/1 Ahem; + } + </style> + </head> + + <body> + + <div style="position: absolute; top: 5px; left: 5px;"> + <math> + <mtable width="150px" rowlines="solid"> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 0px; + width: 50px; height: 50px; background: red;"></div> + + <div style="position: absolute; top: 5px; left: 112px; + width: 50px; height: 50px; background: red;"></div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-2.html b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-2.html new file mode 100644 index 0000000000..8b390a06d0 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-3-2.html @@ -0,0 +1,60 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mtable frame</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="match" href="rowlines-3-2-ref.html"/> + <link rel="stylesheet" href="/fonts/ahem.css" /> + <style> + div, math { + font: 25px/1 Ahem; + } + </style> + </head> + + <body> + + <!-- We assume there is a gap of more than 1px between dashes. Hence + putting two dashed lines with only one pixel of difference in their + horizontal coordinates should not render the same as one dashed line + alone. The opposite is true for continuous line. + The red squares allow to ignore the difference at the bounds --> + + <div style="position: absolute; top: 5px; left: 5px;"> + <math> + <mtable width="150px" rowlines="solid"> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 6px;"> + <math> + <mtable width="150px" rowlines="solid"> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + <mtr> + <mtd><mspace></mspace></mtd> + </mtr> + </mtable> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 0px; + width: 50px; height: 50px; background: red;"></div> + + <div style="position: absolute; top: 5px; left: 112px; + width: 50px; height: 50px; background: red;"></div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-dynamic-mozilla-347496-ref.xhtml b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-dynamic-mozilla-347496-ref.xhtml new file mode 100644 index 0000000000..88aaad25f3 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-dynamic-mozilla-347496-ref.xhtml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + +<body> + +<div><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <mfenced open="[" close="]"> + <mtable id="table" rowlines="dashed"> + <mtr> + <mtd><mi>x</mi></mtd> + <mtd><mi>y</mi></mtd> + </mtr> + <mtr> + <mtd><mi>z</mi></mtd> + <mtd><mi>w</mi></mtd> + </mtr> + </mtable> + </mfenced> +</math></div> + +</body> + +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/rowlines-dynamic-mozilla-347496.xhtml b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-dynamic-mozilla-347496.xhtml new file mode 100644 index 0000000000..2b5fc03ff9 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/rowlines-dynamic-mozilla-347496.xhtml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <link rel="match" href="rowlines-dynamic-mozilla-347496-ref.xhtml"/> + </head> + +<body onload="document.getElementById('table').setAttribute('rowlines', 'dashed')"> + +<div><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <mfenced open="[" close="]"> + <mtable id="table"> + <mtr> + <mtd><mi>x</mi></mtd> + <mtd><mi>y</mi></mtd> + </mtr> + <mtr> + <mtd><mi>z</mi></mtd> + <mtd><mi>w</mi></mtd> + </mtr> + </mtable> + </mfenced> +</math></div> + +</body> + +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/semantics-4-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/semantics-4-ref.html new file mode 100644 index 0000000000..92d3236c27 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/semantics-4-ref.html @@ -0,0 +1,24 @@ +<!DOCTYPE HTML> +<math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> + <mtable width="100%" mathbackground="red"> + <mtr> <mtd><mi>x</mi></mtd> </mtr> + </mtable> +</math> + +<math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> + <mtable mathbackground="red"> + <mtr> <mtd><mi>x</mi></mtd> </mtr> + </mtable> +</math> + +<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> + <mtable width="100%" mathbackground="red"> + <mtr> <mtd><mi>x</mi></mtd> </mtr> + </mtable> +</math> + +<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> + <mtable mathbackground="red"> + <mtr> <mtd><mi>x</mi></mtd> </mtr> + </mtable> +</math> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/semantics-4.html b/testing/web-platform/mozilla/tests/mathml/tables/semantics-4.html new file mode 100644 index 0000000000..bdd13a9c24 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/semantics-4.html @@ -0,0 +1,41 @@ +<!DOCTYPE HTML> +<head> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1131000"/> + <link rel="match" href="semantics-4-ref.html"/> +</head> + +<math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics> + <mtable width="100%" mathbackground="red"> + <mtr> <mtd><mi>x</mi></mtd> </mtr> + </mtable> + <annotation encoding="application/x-tex">y</annotation> + </semantics> +</math> + +<math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics> + <mtable mathbackground="red"> + <mtr> <mtd><mi>x</mi></mtd> </mtr> + </mtable> + <annotation encoding="application/x-tex">y</annotation> + </semantics> +</math> + +<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics> + <mtable width="100%" mathbackground="red"> + <mtr> <mtd><mi>x</mi></mtd> </mtr> + </mtable> + <annotation encoding="application/x-tex">y</annotation> + </semantics> +</math> + +<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics> + <mtable mathbackground="red"> + <mtr> <mtd><mi>x</mi></mtd> </mtr> + </mtable> + <annotation encoding="application/x-tex">y</annotation> + </semantics> +</math> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/spacing-attributes-001.html b/testing/web-platform/mozilla/tests/mathml/tables/spacing-attributes-001.html new file mode 100644 index 0000000000..08e2d63ecd --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/spacing-attributes-001.html @@ -0,0 +1,103 @@ +<!DOCTYPE HTML> +<html> +<head> + <title>Test framespacing/rowspacing/columnspacing attributes</title> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=330964"/> +</head> +<body> + +<math> + <mtable framespacing="7px 20px" frame="solid" rowspacing="11px 27px" columnspacing="5px 16px" + style="border-width: 2px;" id="mtable0"> + <mtr> + <mtd id="mtd0"> + <mn>X</mn> + </mtd> + <mtd id="mtd1"> + <mn>X</mn> + </mtd> + <mtd id="mtd2"> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd id="mtd3"> + <mn>X</mn> + </mtd> + <mtd id="mtd4"> + <mn>X</mn> + </mtd> + <mtd id="mtd5"> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd id="mtd6"> + <mn>X</mn> + </mtd> + <mtd id="mtd7"> + <mn>X</mn> + </mtd> + <mtd id="mtd8"> + <mn>X</mn> + </mtd> + </mtr> + </mtable> +</math> + +<script type="application/javascript"> + + var epsilon = 2; + + rectTable = document.getElementById("mtable0").getBoundingClientRect(); + rect0 = document.getElementById("mtd0").getBoundingClientRect(); + rect1 = document.getElementById("mtd1").getBoundingClientRect(); + rect2 = document.getElementById("mtd2").getBoundingClientRect(); + rect3 = document.getElementById("mtd3").getBoundingClientRect(); + rect4 = document.getElementById("mtd4").getBoundingClientRect(); + rect5 = document.getElementById("mtd5").getBoundingClientRect(); + rect6 = document.getElementById("mtd6").getBoundingClientRect(); + rect7 = document.getElementById("mtd7").getBoundingClientRect(); + rect8 = document.getElementById("mtd8").getBoundingClientRect(); + test(function() { + assert_approx_equals(rect1.left - rect0.right, 5, epsilon); + assert_approx_equals(rect2.left - rect1.right, 16, epsilon); + assert_approx_equals(rect4.left - rect3.right, 5, epsilon); + assert_approx_equals(rect5.left - rect4.right, 16, epsilon); + assert_approx_equals(rect7.left - rect6.right, 5, epsilon); + assert_approx_equals(rect8.left - rect7.right, 16, epsilon); + }, "columnspacing"); + test(function() { + assert_approx_equals(rect3.top - rect0.bottom, 11, epsilon); + assert_approx_equals(rect4.top - rect1.bottom, 11, epsilon); + assert_approx_equals(rect5.top - rect2.bottom, 11, epsilon); + assert_approx_equals(rect6.top - rect3.bottom, 27, epsilon); + assert_approx_equals(rect7.top - rect4.bottom, 27, epsilon); + assert_approx_equals(rect8.top - rect5.bottom, 27, epsilon); + }, "rowspacing"); + // Remember to subtract border + test(function() { + assert_approx_equals(rect0.left - rectTable.left - 2, 7, epsilon); + assert_approx_equals(rect3.left - rectTable.left - 2, 7, epsilon); + assert_approx_equals(rect6.left - rectTable.left - 2, 7, epsilon); + }, "framespacing left"); + test(function() { + assert_approx_equals(rect0.top - rectTable.top - 2, 20, epsilon); + assert_approx_equals(rect1.top - rectTable.top - 2, 20, epsilon); + assert_approx_equals(rect2.top - rectTable.top - 2, 20, epsilon); + }, "framespacing top"); + test(function() { + assert_approx_equals(rectTable.bottom - rect6.bottom - 2, 20, epsilon); + assert_approx_equals(rectTable.bottom - rect7.bottom - 2, 20, epsilon); + assert_approx_equals(rectTable.bottom - rect8.bottom - 2, 20, epsilon); + }, "framespacing bottom"); + test(function() { + assert_approx_equals(rectTable.right - rect2.right - 2, 7, epsilon); + assert_approx_equals(rectTable.right - rect5.right - 2, 7, epsilon); + assert_approx_equals(rectTable.right - rect8.right - 2, 7, epsilon); + }, "framespacing right"); +</script> +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-1-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-1-ref.html new file mode 100644 index 0000000000..3ad0881e22 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-1-ref.html @@ -0,0 +1,66 @@ +<!DOCTYPE html> +<html> + <head><title>Table spacing default values</title></head> + <body> + + <p> + <math> + <mtable rowspacing="1.0ex" columnspacing="0.8em" framespacing="0em 0ex"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + <p> + <math > + <mtable frame="solid" rowspacing="1.0ex" columnspacing="0.8em" framespacing="0.4em 0.5ex"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + + + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-1.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-1.html new file mode 100644 index 0000000000..0259e6dea2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-1.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <title>Table spacing default values</title> + <link rel="match" href="tablespacing-1-ref.html"/> + </head> + <body> + + <p> + <math> + <mtable rowspacing=""> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + <p> + <math> + <mtable frame="solid" rowspacing=""> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + + + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-2-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-2-ref.html new file mode 100644 index 0000000000..0bf2e4822a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-2-ref.html @@ -0,0 +1,134 @@ +<!DOCTYPE html> +<html> + <head><title>Additional values ignored and insufficient ones expanded</title></head> + <body> + + <p> + <math> + <mtable rowspacing="1.0ex 3.0ex 7.0ex" columnspacing="0.8em 2em 3em" framespacing="0em 0ex"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>i</mtext> + </mtd> + <mtd> + <mtext>j</mtext> + </mtd> + <mtd> + <mtext>k</mtext> + </mtd> + <mtd> + <mtext>l</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>m</mtext> + </mtd> + <mtd> + <mtext>n</mtext> + </mtd> + <mtd> + <mtext>o</mtext> + </mtd> + <mtd> + <mtext>p</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + <p> + <math> + <mtable rowspacing="1.0ex 3.0ex 3.0ex" columnspacing="0.8em 2em 2em"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>i</mtext> + </mtd> + <mtd> + <mtext>j</mtext> + </mtd> + <mtd> + <mtext>k</mtext> + </mtd> + <mtd> + <mtext>l</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>m</mtext> + </mtd> + <mtd> + <mtext>n</mtext> + </mtd> + <mtd> + <mtext>o</mtext> + </mtd> + <mtd> + <mtext>p</mtext> + </mtd> + </mtr> + </mtable> + </math> + + + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-2.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-2.html new file mode 100644 index 0000000000..e5b2aa33a2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-2.html @@ -0,0 +1,137 @@ +<!DOCTYPE html> +<html> + <head> + <title>Additional values ignored and insufficient ones expanded</title> + <link rel="match" href="tablespacing-2-ref.html"/> + </head> + <body> + + <p> + <math> + <mtable rowspacing="1.0ex 3.0ex 7.0ex 10ex 12ex" columnspacing="0.8em 2em 3em 5em 7em" framespacing="6em 9ex"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>i</mtext> + </mtd> + <mtd> + <mtext>j</mtext> + </mtd> + <mtd> + <mtext>k</mtext> + </mtd> + <mtd> + <mtext>l</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>m</mtext> + </mtd> + <mtd> + <mtext>n</mtext> + </mtd> + <mtd> + <mtext>o</mtext> + </mtd> + <mtd> + <mtext>p</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + <p> + <math> + <mtable rowspacing="1.0ex 3.0ex" columnspacing="0.8em 2em"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>i</mtext> + </mtd> + <mtd> + <mtext>j</mtext> + </mtd> + <mtd> + <mtext>k</mtext> + </mtd> + <mtd> + <mtext>l</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>m</mtext> + </mtd> + <mtd> + <mtext>n</mtext> + </mtd> + <mtd> + <mtext>o</mtext> + </mtd> + <mtd> + <mtext>p</mtext> + </mtd> + </mtr> + </mtable> + </math> + + + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-3-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-3-ref.html new file mode 100644 index 0000000000..f4180d8dfb --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-3-ref.html @@ -0,0 +1,133 @@ +<!DOCTYPE html> +<html> + <head><title>Single value for rowspacing/columnspacing accepted</title></head> + <body> + + <p> + <math> + <mtable columnspacing="4em 4em 4em"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>i</mtext> + </mtd> + <mtd> + <mtext>j</mtext> + </mtd> + <mtd> + <mtext>k</mtext> + </mtd> + <mtd> + <mtext>l</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>m</mtext> + </mtd> + <mtd> + <mtext>n</mtext> + </mtd> + <mtd> + <mtext>o</mtext> + </mtd> + <mtd> + <mtext>p</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + <p> + <math> + <mtable rowspacing="4.0ex 4.0ex 4.0ex"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>i</mtext> + </mtd> + <mtd> + <mtext>j</mtext> + </mtd> + <mtd> + <mtext>k</mtext> + </mtd> + <mtd> + <mtext>l</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>m</mtext> + </mtd> + <mtd> + <mtext>n</mtext> + </mtd> + <mtd> + <mtext>o</mtext> + </mtd> + <mtd> + <mtext>p</mtext> + </mtd> + </mtr> + </mtable> + </math> + + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-3.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-3.html new file mode 100644 index 0000000000..65a4bf5839 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-3.html @@ -0,0 +1,136 @@ +<!DOCTYPE html> +<html> + <head> + <title>Single value for rowspacing/columnspacing accepted</title> + <link rel="match" href="tablespacing-3-ref.html"/> + </head> + <body> + + <p> + <math> + <mtable columnspacing="4em"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>i</mtext> + </mtd> + <mtd> + <mtext>j</mtext> + </mtd> + <mtd> + <mtext>k</mtext> + </mtd> + <mtd> + <mtext>l</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>m</mtext> + </mtd> + <mtd> + <mtext>n</mtext> + </mtd> + <mtd> + <mtext>o</mtext> + </mtd> + <mtd> + <mtext>p</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + <p> + <math> + <mtable rowspacing="4.0ex"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + <mtd> + <mtext>d</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + <mtd> + <mtext>g</mtext> + </mtd> + <mtd> + <mtext>h</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>i</mtext> + </mtd> + <mtd> + <mtext>j</mtext> + </mtd> + <mtd> + <mtext>k</mtext> + </mtd> + <mtd> + <mtext>l</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>m</mtext> + </mtd> + <mtd> + <mtext>n</mtext> + </mtd> + <mtd> + <mtext>o</mtext> + </mtd> + <mtd> + <mtext>p</mtext> + </mtd> + </mtr> + </mtable> + </math> + + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-4-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-4-ref.html new file mode 100644 index 0000000000..42474859e7 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-4-ref.html @@ -0,0 +1,95 @@ +<!DOCTYPE html> +<html> + <head> + <title>Dynamic tests involving adding and removing elements</title> + <meta charset="utf-8"/> + </head> + <body> + <math> + <mtable columnspacing="5em 7em"> + <mtr> + <mtd> + <mn>x</mn> + </mtd> + <mtd> + <mn>y</mn> + </mtd> + <mtd> + <mn>z</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable columnspacing="5em"> + <mtr> + <mtd> + <mn>x</mn> + </mtd> + <mtd> + <mn>z</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable rowspacing="2ex 4ex"> + <mtr> + <mtd> + <mn>x</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>y</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>z</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable rowspacing="2ex"> + <mtr> + <mtd> + <mn>x</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>z</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable rowspacing="2ex 4ex" columnspacing="4em"> + <mtr> + <mtd> + <mn>x</mn> + </mtd> + <mtd> + <mn>w</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>y</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>z</mn> + </mtd> + </mtr> + </mtable> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-4.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-4.html new file mode 100644 index 0000000000..25d27b4479 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-4.html @@ -0,0 +1,124 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic tests involving adding and removing elements</title> + <meta charset="utf-8"/> + <link rel="match" href="tablespacing-4-ref.html"/> + </head> + <body> + <math> + <mtable columnspacing="5em 7em" id="mtable0a"> + <mtr id="mtr0"> + <mtd> + <mn>x</mn> + </mtd> + <mtd> + <mn>y</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable columnspacing="5em 7em"> + <mtr id="mtr0a"> + <mtd> + <mn>x</mn> + </mtd> + <mtd id="mtd0"> + <mn>y</mn> + </mtd> + <mtd> + <mn>z</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable rowspacing="2ex 4ex" id="mtable0"> + <mtr> + <mtd> + <mn>x</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>y</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable rowspacing="2ex 4ex" id="mtable1"> + <mtr> + <mtd> + <mn>x</mn> + </mtd> + </mtr> + <mtr id="mtr1"> + <mtd> + <mn>y</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>z</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable rowspacing="2ex 4ex" columnspacing="4em"> + <mtr id="mtr2"> + <mtd> + <mn>x</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>y</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>z</mn> + </mtd> + </mtr> + </mtable> + </math> + <script> + function doTest() { + // Add a table cell + var mn0 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mn"); + mn0.innerHTML = 'z'; + var mtd0 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mtd"); + mtd0.appendChild(mn0); + document.getElementById("mtr0").appendChild(mtd0); + // Remove a table cell + document.getElementById("mtr0a").removeChild(document.getElementById("mtd0")); + // Add a table row + var mn1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mn"); + mn1.innerHTML = 'z'; + var mtd1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mtd"); + mtd1.appendChild(mn1); + var mtr1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mtr"); + mtr1.appendChild(mtd1); + document.getElementById("mtable0").appendChild(mtr1); + // Remove a table row + document.getElementById("mtable1").removeChild(document.getElementById("mtr1")); + // Add a table cell to a table containing several rows + var mn2 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mn"); + mn2.innerHTML = 'w'; + var mtd2 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mtd"); + mtd2.appendChild(mn2); + document.getElementById("mtr2").appendChild(mtd2); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5-ref.html new file mode 100644 index 0000000000..c79ccd1e88 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5-ref.html @@ -0,0 +1,274 @@ +<!DOCTYPE html> +<html> + <head> + <title>Dynamic tests involving changes to row/column/framespacing</title> + <meta charset="utf-8"/> + </head> + <body> + <math> + <mtable id="mtable0" > + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable1"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable2" frame="solid"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable3" rowspacing="2ex 4ex"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable4" columnspacing="2em 3em" > + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable5" framespacing="2em 2ex" frame="solid"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable6"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5.html new file mode 100644 index 0000000000..61595de845 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5.html @@ -0,0 +1,296 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic tests involving changes to row/column/framespacing</title> + <meta charset="utf-8"/> + <link rel="match" href="tablespacing-5-ref.html"/> + </head> + <body> + <math> + <mtable id="mtable0" rowspacing="2ex 3ex"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable1" columnspacing="2em 3em"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable2" framespacing="2em 2ex" frame="solid"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable3" > + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable4" > + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable5" frame="solid"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable6" frame="none"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <script> + function doTest() { + // remove spacing attributes + document.getElementById("mtable0").removeAttribute("rowspacing"); + document.getElementById("mtable1").removeAttribute("columnspacing"); + document.getElementById("mtable2").removeAttribute("framespacing"); + + // add spacing attributes + document.getElementById("mtable3").setAttribute("rowspacing", "2ex 4ex"); + document.getElementById("mtable4").setAttribute("columnspacing", "2em 3em"); + document.getElementById("mtable5").setAttribute("framespacing", "2em 2ex"); + + // framespacing doesn't apply with frame="none" + document.getElementById("mtable6").setAttribute("framespacing", "2em 2ex"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + + </script> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5a-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5a-ref.html new file mode 100644 index 0000000000..4d0820805c --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5a-ref.html @@ -0,0 +1,278 @@ +<!DOCTYPE html> +<html> + <head> + <title>Dynamic tests involving changes to row/column/framespacing</title> + <meta charset="utf-8"/> + </head> + <body> + <!-- There are at present two implementations of mtable spacing behaviour, + one based on CSS and the other on rowspacing/columnspacing/framespacing + attributes which the user can select. This reftest tests that dynamic + transitions from one system to the other work appropriately. --> + <math> + <mtable id="mtable0" columnspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable1" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable2" frame="solid" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable3" rowspacing="2ex 4ex" columspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable4" columnspacing="2em 3em" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable5" framespacing="2em 2ex" frame="solid" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable6" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5a.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5a.html new file mode 100644 index 0000000000..8269e599b3 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-5a.html @@ -0,0 +1,296 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic tests involving changes to row/column/framespacing</title> + <meta charset="utf-8"/> + <link rel="match" href="tablespacing-5a-ref.html"/> + </head> + <body> + <math> + <mtable id="mtable0" rowspacing="2ex 3ex" columnspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable1" columnspacing="2em 3em" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable2" framespacing="2em 2ex" frame="solid" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable3" columspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable4" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable5" frame="solid" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable6" frame="none" rowspacing=""> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <script> + function doTest() { + // remove spacing attributes + document.getElementById("mtable0").removeAttribute("rowspacing"); + document.getElementById("mtable1").removeAttribute("columnspacing"); + document.getElementById("mtable2").removeAttribute("framespacing"); + + // add spacing attributes + document.getElementById("mtable3").setAttribute("rowspacing", "2ex 4ex"); + document.getElementById("mtable4").setAttribute("columnspacing", "2em 3em"); + document.getElementById("mtable5").setAttribute("framespacing", "2em 2ex"); + + // framespacing doesn't apply with frame="none" + document.getElementById("mtable6").setAttribute("framespacing", "2em 2ex"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + + </script> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-6-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-6-ref.html new file mode 100644 index 0000000000..a08f5a0ca5 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-6-ref.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<html> + <head> + <title>Dynamic tests involving changes to row/column/framespacing</title> + <meta charset="utf-8"/> + </head> + <body> + <math> + <mtable id="mtable0" rowspacing="3ex 7ex"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable1" columnspacing="3em 7em"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable2" framespacing="3em 7ex" frame="solid"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-6.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-6.html new file mode 100644 index 0000000000..96fa362494 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-6.html @@ -0,0 +1,136 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic tests involving changes to row/column/framespacing</title> + <meta charset="utf-8"/> + <link rel="match" href="tablespacing-6-ref.html"/> + </head> + <body> + <math> + <mtable id="mtable0" rowspacing="2ex 3ex"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable1" columnspacing="2em 3em"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <math> + <mtable id="mtable2" framespacing="2em 2ex" frame="solid"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + <p> + <script> + function doTest() { + + // modify existing spacing attributes + document.getElementById("mtable0").setAttribute("rowspacing", "3ex 7ex"); + document.getElementById("mtable1").setAttribute("columnspacing", "3em 7em"); + document.getElementById("mtable2").setAttribute("framespacing", "3em 7ex"); + + document.documentElement.removeAttribute("class"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-7-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-7-ref.html new file mode 100644 index 0000000000..ad2d53b03e --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-7-ref.html @@ -0,0 +1,97 @@ +<!DOCTYPE html> +<html> + <head><title>Table spacing error handling</title></head> + <body> + + <p> + <math> + <mtable frame="solid" rowspacing="5.0ex 1.0ex"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + <p> + <math > + <mtable frame="solid" columnspacing="5em 0.8em"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + + + </p> + + <p> + <math > + <mtable frame="solid" framespacing="0.4em 0.5ex"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + + + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-7.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-7.html new file mode 100644 index 0000000000..5d51bfd3e2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-7.html @@ -0,0 +1,100 @@ +<!DOCTYPE html> +<html> + <head> + <title>Table spacing error handling</title> + <link rel="match" href="tablespacing-7-ref.html"/> + </head> + <body> + + <p> + <math> + <mtable frame="solid" rowspacing="5.0ex cat"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + </p> + <p> + <math > + <mtable frame="solid" columnspacing="5em cat"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + + + </p> + + <p> + <math > + <mtable frame="solid" framespacing="0.4em cat"> + <mtr> + <mtd> + <mtext>a</mtext> + </mtd> + <mtd> + <mtext>b</mtext> + </mtd> + <mtd> + <mtext>c</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>d</mtext> + </mtd> + <mtd> + <mtext>e</mtext> + </mtd> + <mtd> + <mtext>f</mtext> + </mtd> + </mtr> + </mtable> + </math> + + + </p> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-8-ref.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-8-ref.html new file mode 100644 index 0000000000..a39c15b3d6 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-8-ref.html @@ -0,0 +1,38 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <body> + + <math> + <mtable rowspacing="30px" columnspacing="30px"> + <mtr> + <mtd> + <mspace width="50px" height="30px"></mspace> + </mtd> + <mtd> + <mspace width="50px" height="30px"></mspace> + </mtd> + </mtr> + <mtr> + <mtd> + <mspace width="50px" height="30px"></mspace> + </mtd> + <mtd> + <mspace width="50px" height="30px"></mspace> + </mtd> + </mtr> + </mtable> + </math> + + <div style="position: absolute; top: 0; left: 0px; + width: 150px; height: 40px; background: black;"></div> + <div style="position: absolute; top: 70px; left: 0px; + width: 150px; height: 40px; background: black;"></div> + <div style="position: absolute; top: 0px; left: 0px; + width: 60px; height: 100px; background: black;"></div> + <div style="position: absolute; top: 0px; left: 90px; + width: 60px; height: 100px; background: black;"></div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-8a.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-8a.html new file mode 100644 index 0000000000..9ed7adf31d --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-8a.html @@ -0,0 +1,42 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <link rel="mismatch" href="tablespacing-8-ref.html"/> + </head> + <body> + + <math> + <mtable rowspacing="30px" columnspacing="60px" + rowlines="solid"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + + <div style="position: absolute; top: 0; left: 0px; + width: 150px; height: 40px; background: black;"></div> + <div style="position: absolute; top: 70px; left: 0px; + width: 150px; height: 40px; background: black;"></div> + <div style="position: absolute; top: 0px; left: 0px; + width: 60px; height: 100px; background: black;"></div> + <div style="position: absolute; top: 0px; left: 90px; + width: 60px; height: 100px; background: black;"></div> + + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-8b.html b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-8b.html new file mode 100644 index 0000000000..ff01ce9e73 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/tables/tablespacing-8b.html @@ -0,0 +1,41 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <link rel="mismatch" href="tablespacing-8-ref.html"/> + </head> + <body> + + <math> + <mtable rowspacing="20px" columnspacing="100px" + columnlines="solid"> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>X</mn> + </mtd> + <mtd> + <mn>X</mn> + </mtd> + </mtr> + </mtable> + </math> + + <div style="position: absolute; top: 0; left: 0px; + width: 150px; height: 40px; background: black;"></div> + <div style="position: absolute; top: 70px; left: 0px; + width: 150px; height: 40px; background: black;"></div> + <div style="position: absolute; top: 0px; left: 0px; + width: 60px; height: 100px; background: black;"></div> + <div style="position: absolute; top: 0px; left: 90px; + width: 60px; height: 100px; background: black;"></div> + </body> +</html> |