diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/reftests/mathml | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/mathml')
677 files changed, 32748 insertions, 0 deletions
diff --git a/layout/reftests/mathml/columnlines-1-ref.html b/layout/reftests/mathml/columnlines-1-ref.html new file mode 100644 index 000000000..e5ea01a7d --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/columnlines-1a.html b/layout/reftests/mathml/columnlines-1a.html new file mode 100644 index 000000000..3f391c296 --- /dev/null +++ b/layout/reftests/mathml/columnlines-1a.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 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/layout/reftests/mathml/columnlines-1b.html b/layout/reftests/mathml/columnlines-1b.html new file mode 100644 index 000000000..9ee1a3e35 --- /dev/null +++ b/layout/reftests/mathml/columnlines-1b.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 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/layout/reftests/mathml/columnlines-1c.html b/layout/reftests/mathml/columnlines-1c.html new file mode 100644 index 000000000..d1bd0d7ce --- /dev/null +++ b/layout/reftests/mathml/columnlines-1c.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 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/layout/reftests/mathml/columnlines-2-ref.html b/layout/reftests/mathml/columnlines-2-ref.html new file mode 100644 index 000000000..84c96c5fe --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/columnlines-2a.html b/layout/reftests/mathml/columnlines-2a.html new file mode 100644 index 000000000..ea3ed5abe --- /dev/null +++ b/layout/reftests/mathml/columnlines-2a.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"> + <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/layout/reftests/mathml/columnlines-2b.html b/layout/reftests/mathml/columnlines-2b.html new file mode 100644 index 000000000..36182d60a --- /dev/null +++ b/layout/reftests/mathml/columnlines-2b.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 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/layout/reftests/mathml/columnlines-3-1-ref.html b/layout/reftests/mathml/columnlines-3-1-ref.html new file mode 100644 index 000000000..ce49f5dad --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/columnlines-3-1.html b/layout/reftests/mathml/columnlines-3-1.html new file mode 100644 index 000000000..80c46858e --- /dev/null +++ b/layout/reftests/mathml/columnlines-3-1.html @@ -0,0 +1,48 @@ +<!-- -*- 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> + + <!-- 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/layout/reftests/mathml/columnlines-3-2-ref.html b/layout/reftests/mathml/columnlines-3-2-ref.html new file mode 100644 index 000000000..6549ad526 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/columnlines-3-2.html b/layout/reftests/mathml/columnlines-3-2.html new file mode 100644 index 000000000..789013d9f --- /dev/null +++ b/layout/reftests/mathml/columnlines-3-2.html @@ -0,0 +1,48 @@ +<!-- -*- 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> + + <!-- 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/layout/reftests/mathml/css-spacing-1-ref.html b/layout/reftests/mathml/css-spacing-1-ref.html new file mode 100644 index 000000000..22969f351 --- /dev/null +++ b/layout/reftests/mathml/css-spacing-1-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS spacing properties</title> + <style type="text/css"> + math { + line-height: normal; + word-spacing: normal; + letter-spacing: normal; + } + </style> + </head> + + <body> + <p style="line-height: 30pt; + word-spacing: 2em; + letter-spacing: 2em;"> + <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <mrow> + <mo>(</mo> + <mtable rowspacing="0pt" columnspacing="0em"> + <mtr> + <mtd><mtext>row 1 column 1</mtext></mtd> + <mtd><mtext>row 1 column 2</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>row 2 column 1</mtext></mtd> + <mtd><mtext>row 2 column 2</mtext></mtd> + </mtr> + </mtable> + <mo>)</mo> + </mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/css-spacing-1.html b/layout/reftests/mathml/css-spacing-1.html new file mode 100644 index 000000000..59de4b544 --- /dev/null +++ b/layout/reftests/mathml/css-spacing-1.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS spacing properties</title> + </head> + + <body> + <p style="line-height: 30pt; + word-spacing: 2em; + letter-spacing: 2em;"> + <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <mrow> + <mo>(</mo> + <mtable rowspacing="0pt" columnspacing="0em"> + <mtr> + <mtd><mtext>row 1 column 1</mtext></mtd> + <mtd><mtext>row 1 column 2</mtext></mtd> + </mtr> + <mtr> + <mtd><mtext>row 2 column 1</mtext></mtd> + <mtd><mtext>row 2 column 2</mtext></mtd> + </mtr> + </mtable> + <mo>)</mo> + </mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/default-font-ref.html b/layout/reftests/mathml/default-font-ref.html new file mode 100644 index 000000000..9917f14b6 --- /dev/null +++ b/layout/reftests/mathml/default-font-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>default font</title> + <meta charset="utf-8"/> + </head> + <body style="font: 20px monospace;"> + + <math style="font-family: serif; font-size: 40px;"> + <mn>x-math language</mn> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/default-font.html b/layout/reftests/mathml/default-font.html new file mode 100644 index 000000000..5e8f80821 --- /dev/null +++ b/layout/reftests/mathml/default-font.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>default font</title> + <meta charset="utf-8"/> + </head> + <body style="font: 20px monospace;"> + + <!-- font.minimum-size.x-math set to 40 --> + <math> + <mn>x-math language</mn> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-1-ref.html b/layout/reftests/mathml/dir-1-ref.html new file mode 100644 index 000000000..a77be855c --- /dev/null +++ b/layout/reftests/mathml/dir-1-ref.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + <p> + math: + <math> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </math> + </p> + + <p> + mrow: + <math> + <mrow> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </mrow> + </math> + </p> + + <p> + mstyle: + <math> + <mstyle> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </mstyle> + </math> + </p> + + <p> + mpadded lspace="25px" width="150px": + <math> + <mspace width="1px" height="25px" mathbackground="black"/> + <mpadded lspace="50px" width="150px"> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </mpadded> + <mspace width="1px" height="25px" mathbackground="black"/> + </math> + </p> + + <p> + mfenced open="A" close="D" separators="BC": + <math> + <mfenced open="D" close="A" separators="CB"> + <mtext>c</mtext> + <mtext>b</mtext> + <mtext>a</mtext> + </mfenced> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-1.html b/layout/reftests/mathml/dir-1.html new file mode 100644 index 000000000..2b4ce236c --- /dev/null +++ b/layout/reftests/mathml/dir-1.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + <p> + math: + <math dir="rtl"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </math> + </p> + + <p> + mrow: + <math> + <mrow dir="rtl"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </mrow> + </math> + </p> + + <p> + mstyle: + <math> + <mstyle dir="rtl"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </mstyle> + </math> + </p> + + <p> + mpadded lspace="25px" width="150px": + <math dir="rtl"> + <mspace width="1px" height="25px" mathbackground="black"/> + <mpadded lspace="25px" width="150px"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </mpadded> + <mspace width="1px" height="25px" mathbackground="black"/> + </math> + </p> + + <p> + mfenced open="A" close="D" separators="BC": + <math dir="rtl"> + <mfenced open="A" close="D" separators="BC"> + <mtext>a</mtext> + <mtext>b</mtext> + <mtext>c</mtext> + </mfenced> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-10-ref.html b/layout/reftests/mathml/dir-10-ref.html new file mode 100644 index 000000000..d9a80d8da --- /dev/null +++ b/layout/reftests/mathml/dir-10-ref.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<html> + <head><title>Test direction: rtl</title></head> + <body> + <p> + math: + <math style="direction: rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </math> + </p> + + <p> + mrow: + <math> + <mrow style="direction: rtl"> + <mi>z</mi> + <mtext>X</mtext> + <mtext>Y</mtext> + <mtext>Z</mtext> + <mi>a</mi> + </mrow> + </math> + </p> + + <p> + mstyle(mathcolor=blue): + <math> + <mstyle mathcolor="blue" style="direction: rtl"> + <mi>a</mi> + <mo>+</mo> + <mn>3</mo> + <mo>+</mo> + <mn>9</mn> + </mstyle> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-10.html b/layout/reftests/mathml/dir-10.html new file mode 100644 index 000000000..85bc75f77 --- /dev/null +++ b/layout/reftests/mathml/dir-10.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<html> + <head><title>Test direction: rtl</title></head> + <body> + <p> + math: + <math dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </math> + </p> + + <p> + mrow: + <math> + <mrow dir="rtl"> + <mi>z</mi> + <mtext>X</mtext> + <mtext>Y</mtext> + <mtext>Z</mtext> + <mi>a</mi> + </mrow> + </math> + </p> + + <p> + mstyle(mathcolor=blue): + <math> + <mstyle mathcolor="blue" dir="rtl"> + <mi>a</mi> + <mo>+</mo> + <mn>3</mo> + <mo>+</mo> + <mn>9</mn> + </mstyle> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-11-ref.html b/layout/reftests/mathml/dir-11-ref.html new file mode 100644 index 000000000..c23763f44 --- /dev/null +++ b/layout/reftests/mathml/dir-11-ref.html @@ -0,0 +1,76 @@ +<!DOCTYPE html> +<html> + <head><title>Test direction: dynamic change</title></head> + <body> + + <p> + math: + <math dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </math> + <math dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </math> + <math> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </math> + </p> + + <p> + mstyle: + <math> + <mstyle dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mstyle> + </math> + <math> + <mstyle dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mstyle> + </math> + <math> + <mstyle> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mstyle> + </math> + </p> + + <p> + mrow: + <math> + <mrow dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mrow> + </math> + <math> + <mrow dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mrow> + </math> + <math> + <mrow> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mrow> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-11.html b/layout/reftests/mathml/dir-11.html new file mode 100644 index 000000000..ebb2018bf --- /dev/null +++ b/layout/reftests/mathml/dir-11.html @@ -0,0 +1,98 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head><title>Test direction: dynamic change</title></head> + <body> + <p> + math: + <math> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </math> + <math dir="ltr"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </math> + <math dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </math> + </p> + + <p> + mstyle: + <math> + <mstyle> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mstyle> + </math> + <math> + <mstyle dir="ltr"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mstyle> + </math> + <math> + <mstyle dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mstyle> + </math> + </p> + + <p> + mrow: + <math> + <mrow> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mrow> + </math> + <math> + <mrow dir="ltr"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mrow> + </math> + <math> + <mrow dir="rtl"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mrow> + </math> + </p> + + <script> + function doTest() + { + var x = document.getElementsByTagName("math"); + x[0].setAttribute("dir", "rtl"); + x[1].setAttribute("dir", "rtl"); + x[2].removeAttribute("dir"); + + x = document.getElementsByTagName("mstyle"); + x[0].setAttribute("dir", "rtl"); + x[1].setAttribute("dir", "rtl"); + x[2].removeAttribute("dir"); + + x = document.getElementsByTagName("mrow"); + x[0].setAttribute("dir", "rtl"); + x[1].setAttribute("dir", "rtl"); + x[2].removeAttribute("dir"); + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-2-ref.html b/layout/reftests/mathml/dir-2-ref.html new file mode 100644 index 000000000..0b57ece82 --- /dev/null +++ b/layout/reftests/mathml/dir-2-ref.html @@ -0,0 +1,81 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + <p> + mfrac (numalign=left): + <math> + <mfrac numalign="left"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="75px" height="25px" mathbackground="green"/> + </mfrac> + </math> + </p> + + <p> + mfrac (numalign=right): + <math> + <mfrac numalign="right"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="75px" height="25px" mathbackground="green"/> + </mfrac> + </math> + </p> + + <p> + menclose: + <math> + <menclose> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + <p> + menclose notation="left": + <math> + <menclose notation="left"> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + <p> + menclose notation="right": + <math> + <menclose notation="right"> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + <p> + menclose notation="updiagonalstrike": + <math> + <menclose notation="updiagonalstrike"> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + <p> + menclose notation="downdiagonalstrike": + <math> + <menclose notation="downdiagonalstrike"> + <mspace width="25px" height="25px" mathbackground="blue"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="red"/> + </menclose> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-2.html b/layout/reftests/mathml/dir-2.html new file mode 100644 index 000000000..41d5b3aa6 --- /dev/null +++ b/layout/reftests/mathml/dir-2.html @@ -0,0 +1,81 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + <p> + mfrac (numalign=left): + <math dir="rtl"> + <mfrac numalign="left"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="75px" height="25px" mathbackground="green"/> + </mfrac> + </math> + </p> + + <p> + mfrac (numalign=right): + <math dir="rtl"> + <mfrac numalign="right"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="75px" height="25px" mathbackground="green"/> + </mfrac> + </math> + </p> + + <p> + menclose: + <math dir="rtl"> + <menclose> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + <p> + menclose notation="left": + <math dir="rtl"> + <menclose notation="left"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + <p> + menclose notation="right": + <math dir="rtl"> + <menclose notation="right"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + <p> + menclose notation="updiagonalstrike": + <math dir="rtl"> + <menclose notation="updiagonalstrike"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + <p> + menclose notation="downdiagonalstrike": + <math dir="rtl"> + <menclose notation="downdiagonalstrike"> + <mspace width="25px" height="25px" mathbackground="red"/> + <mspace width="25px" height="25px" mathbackground="green"/> + <mspace width="25px" height="25px" mathbackground="blue"/> + </menclose> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-3-ref.html b/layout/reftests/mathml/dir-3-ref.html new file mode 100644 index 000000000..3260aef20 --- /dev/null +++ b/layout/reftests/mathml/dir-3-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body style="background: white;"> + + <div style="position: absolute; top: 5px; left: 5px;"> + <div style="width: 30px; height: 500px; background: black;"></div> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-3.html b/layout/reftests/mathml/dir-3.html new file mode 100644 index 000000000..e2d2f3813 --- /dev/null +++ b/layout/reftests/mathml/dir-3.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body style="background: white;"> + + <!-- The visible part of the formulas below should be covered by the + black rectangle when dir=rtl --> + + <div style="position: absolute; top: 5px; left: 5px;"> + <!-- msup --> + <math dir="rtl"> + <msup> + <mspace width="20px" height="20px"/> + <mspace width="20px" height="20px" mathbackground="red"/> + </msup> + </math><br/> + <!-- msub --> + <math dir="rtl"> + <msub> + <mspace width="20px" height="20px"/> + <mspace width="20px" height="20px" mathbackground="orange"/> + </msub> + </math><br/> + <!-- msubsup --> + <math dir="rtl"> + <msubsup> + <mspace width="20px" height="20px"/> + <mspace width="20px" height="20px" mathbackground="green"/> + <mspace width="20px" height="20px" mathbackground="blue"/> + </msubsup> + </math><br/> + <!-- mmultiscripts --> + <math dir="rtl"> + <mmultiscripts> + <mspace/> + <mspace width="20px" height="20px" mathbackground="cyan"/> + <mspace width="20px" height="20px" mathbackground="yellow"/> + <mprescripts/> + <mspace width="20px" height="20px"/> + <mspace width="20px" height="20px"/> + </mmultiscripts> + </math><br/> + <!-- munder (mo with movablelimits=true and displaystyle=false) --> + <math dir="rtl"> + <munder> + <mpadded width="20px"> + <mphantom> + <mo movablelimits="true" displaystyle="false">|</mo> + </mphantom> + </mpadded> + <mspace width="20px" height="20px" mathbackground="magenta"/> + </munder> + </math><br/> + <!-- mover (mo with movablelimits=true and displaystyle=false) --> + <math dir="rtl"> + <mover> + <mpadded width="20px"> + <mphantom> + <mo movablelimits="true" displaystyle="false">|</mo> + </mphantom> + </mpadded> + <mspace width="20px" height="20px" mathbackground="cyan"/> + </mover> + </math><br/> + <!-- munderover (mo with movablelimits=true and displaystyle=false) --> + <math dir="rtl"> + <munderover> + <mpadded width="20px"> + <mphantom> + <mo movablelimits="true" displaystyle="false">|</mo> + </mphantom> + </mpadded> + <mspace width="20px" height="20px" mathbackground="yellow"/> + <mspace width="20px" height="20px" mathbackground="grey"/> + </munderover> + </math><br/> + <!-- mfrac (bevelled=true) --> + <math dir="rtl"> + <mstyle mathcolor="white"> + <mfrac bevelled="true"> + <mspace width="20px" height="20px"/> + <mspace width="20px" height="20px" mathbackground="red"/> + </mfrac> + </mstyle> + </math><br/> + <!-- mroot --> + <math dir="rtl"> + <mstyle mathcolor="white"> + <mroot> + <mspace width="20px" height="20px" mathbackground="orange"/> + <mspace width="20px" height="20px"/> + </mroot> + </mstyle> + </math><br/> + <!-- msqrt --> + <math dir="rtl"> + <mstyle mathcolor="white"> + <msqrt> + <!-- Here, we assume that (width of radical + width of mspace) + is greater than the width of the black rectangle (i.e. + width of radical > 30 - 25 = 5px), so the test fails if the + radical is placed on the left. --> + <mspace width="25px" height="20px" mathbackground="grey"/> + </msqrt> + </mstyle> + </math> + </div> + + <div style="position: absolute; top: 5px; left: 5px;"> + <div style="width: 30px; height: 500px; background: black;"></div> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-4-ref.html b/layout/reftests/mathml/dir-4-ref.html new file mode 100644 index 000000000..f4dbe0e32 --- /dev/null +++ b/layout/reftests/mathml/dir-4-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body style="background: white;"> + + <div style="position: absolute; + top: 5px; left: 5px; width: 100px; height: 100px; + text-align: center; background: black;"> + <div style="position: absolute; + width: 35px; height: 100px; background: red;"></div> + <div style="position: absolute; left: 40px; + width: 20px; height: 100px; background: blue;"></div> + <div style="position: absolute; left: 60px; width: 40px; height: 100px; + background: green;"></div> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-4.html b/layout/reftests/mathml/dir-4.html new file mode 100644 index 000000000..e8655de9f --- /dev/null +++ b/layout/reftests/mathml/dir-4.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body style="background: white;"> + + <!-- menclose notation=radical --> + + <div style="position: absolute; + top: 5px; left: 5px; width: 100px; height: 100px; + text-align: center; background: black;"> + <math dir="rtl"> + <mstyle mathcolor="yellow"> + <!-- left and right notation make the menclose symmetric --> + <menclose notation="radical left right"> + <mspace width="20px" height="20px"/> + </menclose> + </mstyle> + </math> + </div> + + <div style="position: absolute; + top: 5px; left: 5px; width: 100px; height: 100px;"> + <!-- hide the left part of the menclose. A 5px band is not covered, where + the radical may be seen if it is wrongly placed on the left instead. + --> + <div style="position: absolute; + width: 35px; height: 100px; background: red;"></div> + <!-- hide the middle part of the menclose --> + <div style="position: absolute; left: 40px; + width: 20px; height: 100px; background: blue;"></div> + <!-- hide the right part of the menclose --> + <div style="position: absolute; left: 60px; width: 40px; height: 100px; + background: green;"></div> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-5-ref.html b/layout/reftests/mathml/dir-5-ref.html new file mode 100644 index 000000000..e3b99e389 --- /dev/null +++ b/layout/reftests/mathml/dir-5-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + + <div style="position: absolute; + top: 5px; left: 5px; width: 200px; height: 200px;"> + <div style="position: absolute; width: 40px; height: 200px; + left: 0px; background: red;"></div> + <div style="position: absolute; width: 40px; height: 200px; + left: 40px; background: green;"></div> + <div style="position: absolute; width: 40px; height: 200px; + left: 80px; background: magenta;"></div> + <div style="position: absolute; width: 40px; height: 200px; + left: 120px; background: blue;"></div> + <div style="position: absolute; width: 40px; height: 200px; + left: 160px; background: yellow;"></div> + </div> + + <div style="position: absolute; + top: 5px; left: 5px; width: 200px; height: 200px;"> + <div style="position: absolute; width: 10px; height: 200px; + left: -5px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 35px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 75px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 115px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 155px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 195px; background: black;"></div> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-5.html b/layout/reftests/mathml/dir-5.html new file mode 100644 index 000000000..dca12c49b --- /dev/null +++ b/layout/reftests/mathml/dir-5.html @@ -0,0 +1,76 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + + <!-- mmultiscripts. The formulas + + 1 3 3 1 + X in dir=ltr and X in dir=rtl + 2 4 4 2 + + do not match perfectly, so we use an alternative == reftest here + which is less strict. --> + + <!-- five vertical bands: red, green, magenta, blue and yellow --> + <div style="position: absolute; + top: 5px; left: 5px; width: 200px; height: 200px;"> + <div style="position: absolute; width: 40px; height: 200px; + left: 0px; background: red;"></div> + <div style="position: absolute; width: 40px; height: 200px; + left: 40px; background: green;"></div> + <div style="position: absolute; width: 40px; height: 200px; + left: 80px; background: magenta;"></div> + <div style="position: absolute; width: 40px; height: 200px; + left: 120px; background: blue;"></div> + <div style="position: absolute; width: 40px; height: 200px; + left: 160px; background: yellow;"></div> + </div> + + <!-- a mmultiscripts element whose children are squares of different + colors. In dir=rtl, the color of each square should match the one of + the band over which the square is positioned. Hence, this + mmultiscripts should not be visible. --> + <div style="position: absolute; + top: 5px; left: 5px; width: 200px; height: 200px;"> + <math dir="rtl"> + <mmultiscripts> + <mspace width="40px" height="40px" mathbackground="magenta"/> + + <mspace width="40px" height="40px" mathbackground="green"/> + <mspace width="40px" height="40px" mathbackground="green"/> + + <mspace width="40px" height="40px" mathbackground="red"/> + <mspace width="40px" height="40px" mathbackground="red"/> + + <mprescripts/> + + <mspace width="40px" height="40px" mathbackground="yellow"/> + <mspace width="40px" height="40px" mathbackground="yellow"/> + + <mspace width="40px" height="40px" mathbackground="blue"/> + <mspace width="40px" height="40px" mathbackground="blue"/> + </mmultiscripts> + </math> + </div> + + <!-- We add black vertical bands to cover spaces between the children of + mmultiscripts. --> + <div style="position: absolute; + top: 5px; left: 5px; width: 200px; height: 200px;"> + <div style="position: absolute; width: 10px; height: 200px; + left: -5px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 35px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 75px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 115px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 155px; background: black;"></div> + <div style="position: absolute; width: 10px; height: 200px; + left: 195px; background: black;"></div> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-6-ref.html b/layout/reftests/mathml/dir-6-ref.html new file mode 100644 index 000000000..5a4f51ff5 --- /dev/null +++ b/layout/reftests/mathml/dir-6-ref.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + + <p> + mtable: + <math> + <mtable> + <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/layout/reftests/mathml/dir-6.html b/layout/reftests/mathml/dir-6.html new file mode 100644 index 000000000..446e5dde2 --- /dev/null +++ b/layout/reftests/mathml/dir-6.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + + <p> + mtable: + <math dir="rtl"> + <mtable> + <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/layout/reftests/mathml/dir-6a-ref.html b/layout/reftests/mathml/dir-6a-ref.html new file mode 100644 index 000000000..d66b9c271 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/dir-6a.html b/layout/reftests/mathml/dir-6a.html new file mode 100644 index 000000000..ffa208ef8 --- /dev/null +++ b/layout/reftests/mathml/dir-6a.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></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/layout/reftests/mathml/dir-7-ref.html b/layout/reftests/mathml/dir-7-ref.html new file mode 100644 index 000000000..94d5edb3e --- /dev/null +++ b/layout/reftests/mathml/dir-7-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + + <p> + mo (lspace=1em rspace=2em): + <math> + <mtext>_</mtext><mo lspace="2em" rspace="1em">+</mo><mtext>_</mtext> + </math> + </p> + + <p> + embellished mrow (lspace=1em rspace=2em): + <math> + <mtext>_</mtext> + <mrow><mo lspace="2em" rspace="1em">+</mo></mrow> + <mtext>_</mtext> + </math> + </p> + + <p> + embellished munderover (lspace=1em rspace=2em): + <math> + <mtext>_</mtext> + <munderover> + <mo lspace="2em" rspace="1em">+</mo> + <mtext>|</mtext> + <mtext>|</mtext> + </munderover> + <mtext>_</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-7.html b/layout/reftests/mathml/dir-7.html new file mode 100644 index 000000000..8f2863ecc --- /dev/null +++ b/layout/reftests/mathml/dir-7.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + + <p> + mo (lspace=1em rspace=2em): + <math dir="rtl"> + <mtext>_</mtext><mo lspace="1em" rspace="2em">+</mo><mtext>_</mtext> + </math> + </p> + + <p> + embellished mrow (lspace=1em rspace=2em): + <math dir="rtl"> + <mtext>_</mtext> + <mrow><mo lspace="1em" rspace="2em">+</mo></mrow> + <mtext>_</mtext> + </math> + </p> + + <p> + embellished munderover (lspace=1em rspace=2em): + <math dir="rtl"> + <mtext>_</mtext> + <munderover> + <mo lspace="1em" rspace="2em">+</mo> + <mtext>|</mtext> + <mtext>|</mtext> + </munderover> + <mtext>_</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-8-ref.html b/layout/reftests/mathml/dir-8-ref.html new file mode 100644 index 000000000..4115fa00b --- /dev/null +++ b/layout/reftests/mathml/dir-8-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + + <p> + embellished mfrac (lspace=1em rspace=2em): + <math + <mtext>_</mtext> + <mfrac> + <mo lspace="2em" rspace="1em">+</mo> + <mtext>|</mtext> + </mfrac> + <mtext>_</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-8.html b/layout/reftests/mathml/dir-8.html new file mode 100644 index 000000000..1efe189b8 --- /dev/null +++ b/layout/reftests/mathml/dir-8.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + + <p> + embellished mfrac (lspace=1em rspace=2em): + <math dir="rtl"> + <mtext>_</mtext> + <mfrac> + <mo lspace="1em" rspace="2em">+</mo> + <mtext>|</mtext> + </mfrac> + <mtext>_</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/dir-9-ref.html b/layout/reftests/mathml/dir-9-ref.html new file mode 100644 index 000000000..6bf11e512 --- /dev/null +++ b/layout/reftests/mathml/dir-9-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + <p>ms lquote="A" rquote="B": + <math> + <ms lquote="B" rquote="A">___</ms> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/dir-9.html b/layout/reftests/mathml/dir-9.html new file mode 100644 index 000000000..224574c0c --- /dev/null +++ b/layout/reftests/mathml/dir-9.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head><title>Test dir=rtl</title></head> + <body> + <p>ms lquote="A" rquote="B": + <math dir="rtl"> + <ms lquote="A" rquote="B">___</ms> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/disabled-scriptlevel-1-ref.html b/layout/reftests/mathml/disabled-scriptlevel-1-ref.html new file mode 100644 index 000000000..76658a0b6 --- /dev/null +++ b/layout/reftests/mathml/disabled-scriptlevel-1-ref.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>scriptlevel</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test scriptlevel on mstyle --> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <mtext>O</mtext> + <mstyle scriptlevel="1"><mtext>O</mtext></mstyle> + </mstyle> + </randomelement> + + <!-- The mfrac element sets displaystyle to "false", or if it was already + false increments scriptlevel by 1, within numerator and denominator. + --> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <mstyle displaystyle="false"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + <mstyle displaystyle="true"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + </mstyle> + </randomelement> + + <!-- The mroot element increments scriptlevel by 2, and sets + displaystyle to "false", within index, but leaves both attributes + unchanged within base. + The msqrt element leaves both attributes unchanged within its + argument. --> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <mroot> + <mtext>O</mtext> + <mtext>O</mtext> + </mroot> + <msqrt> + <mtext>O</mtext> + </msqrt> + </mstyle> + </randomelement> + +<!-- + The msub element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within subscript, but leaves both attributes unchanged within base. + + The msup element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within superscript, but leaves both attributes unchanged within + base. + + The msubsup element [...] increments scriptlevel by 1, and sets displaystyle + to "false", within subscript and superscript, but leaves both attributes + unchanged within base. + + The mmultiscripts element increments scriptlevel by 1, and sets displaystyle + to "false", within each of its arguments except base, but leaves both + attributes unchanged within base. + --> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <msub> + <mtext>O</mtext> + <mtext>O</mtext> + </msub> + <msup> + <mtext>O</mtext> + <mtext>O</mtext> + </msup> + <msubsup> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </msubsup> + <mmultiscripts> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + <mprescripts/> + <mtext>O</mtext> + <mtext>O</mtext> + </mmultiscripts> + </mstyle> + </randomelement> + +<!-- + The munder element [...] always sets displaystyle to "false" within the + underscript, but increments scriptlevel by 1 only when accentunder is + "false". Within base, it always leaves both attributes unchanged. + + The mover element [...] always sets displaystyle to "false" within + overscript, but increments scriptlevel by 1 only when accent is "false". + Within base, it always leaves both attributes unchanged. + + The munderover [..] always sets displaystyle to "false" within underscript + and overscript, but increments scriptlevel by 1 only when accentunder or + accent, respectively, are "false". Within base, it always leaves both + attributes unchanged. +--> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <munder> + <mtext>O</mtext> + <mtext>O</mtext> + </munder> + <mover> + <mtext>O</mtext> + <mtext>O</mtext> + </mover> + <munderover> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </munderover> + </mstyle> + </randomelement> + + </body> +</html> diff --git a/layout/reftests/mathml/disabled-scriptlevel-1-ref.xhtml b/layout/reftests/mathml/disabled-scriptlevel-1-ref.xhtml new file mode 100644 index 000000000..6b22791ab --- /dev/null +++ b/layout/reftests/mathml/disabled-scriptlevel-1-ref.xhtml @@ -0,0 +1,133 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>scriptlevel</title> + <meta charset="utf-8"/> + <style> + h2 { + text-align:center; + } + </style> + </head> + <body> + + <!-- Test scriptlevel on mstyle --> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <mtext>O</mtext> + <mstyle scriptlevel="1"><mtext>O</mtext></mstyle> + </mstyle> + </randomelement> + + <!-- The mfrac element sets displaystyle to "false", or if it was already + false increments scriptlevel by 1, within numerator and denominator. + --> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <mstyle displaystyle="false"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + <mstyle displaystyle="true"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + </mstyle> + </randomelement> + + <!-- The mroot element increments scriptlevel by 2, and sets + displaystyle to "false", within index, but leaves both attributes + unchanged within base. + The msqrt element leaves both attributes unchanged within its + argument. --> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <mroot> + <mtext>O</mtext> + <mtext>O</mtext> + </mroot> + <msqrt> + <mtext>O</mtext> + </msqrt> + </mstyle> + </randomelement> + +<!-- + The msub element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within subscript, but leaves both attributes unchanged within base. + + The msup element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within superscript, but leaves both attributes unchanged within + base. + + The msubsup element [...] increments scriptlevel by 1, and sets displaystyle + to "false", within subscript and superscript, but leaves both attributes + unchanged within base. + + The mmultiscripts element increments scriptlevel by 1, and sets displaystyle + to "false", within each of its arguments except base, but leaves both + attributes unchanged within base. + --> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <msub> + <mtext>O</mtext> + <mtext>O</mtext> + </msub> + <msup> + <mtext>O</mtext> + <mtext>O</mtext> + </msup> + <msubsup> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </msubsup> + <mmultiscripts> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + <mprescripts/> + <mtext>O</mtext> + <mtext>O</mtext> + </mmultiscripts> + </mstyle> + </randomelement> + +<!-- + The munder element [...] always sets displaystyle to "false" within the + underscript, but increments scriptlevel by 1 only when accentunder is + "false". Within base, it always leaves both attributes unchanged. + + The mover element [...] always sets displaystyle to "false" within + overscript, but increments scriptlevel by 1 only when accent is "false". + Within base, it always leaves both attributes unchanged. + + The munderover [..] always sets displaystyle to "false" within underscript + and overscript, but increments scriptlevel by 1 only when accentunder or + accent, respectively, are "false". Within base, it always leaves both + attributes unchanged. +--> + <randomelement> + <mstyle scriptsizemultiplier="2"> + <munder> + <mtext>O</mtext> + <mtext>O</mtext> + </munder> + <mover> + <mtext>O</mtext> + <mtext>O</mtext> + </mover> + <munderover> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </munderover> + </mstyle> + </randomelement> + + </body> +</html> diff --git a/layout/reftests/mathml/disabled-scriptlevel-1.html b/layout/reftests/mathml/disabled-scriptlevel-1.html new file mode 100644 index 000000000..9cd388f1c --- /dev/null +++ b/layout/reftests/mathml/disabled-scriptlevel-1.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>scriptlevel</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test scriptlevel on mstyle --> + <math> + <mstyle scriptsizemultiplier="2"> + <mtext>O</mtext> + <mstyle scriptlevel="1"><mtext>O</mtext></mstyle> + </mstyle> + </math> + + <!-- The mfrac element sets displaystyle to "false", or if it was already + false increments scriptlevel by 1, within numerator and denominator. + --> + <math> + <mstyle scriptsizemultiplier="2"> + <mstyle displaystyle="false"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + <mstyle displaystyle="true"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + </mstyle> + </math> + + <!-- The mroot element increments scriptlevel by 2, and sets + displaystyle to "false", within index, but leaves both attributes + unchanged within base. + The msqrt element leaves both attributes unchanged within its + argument. --> + <math> + <mstyle scriptsizemultiplier="2"> + <mroot> + <mtext>O</mtext> + <mtext>O</mtext> + </mroot> + <msqrt> + <mtext>O</mtext> + </msqrt> + </mstyle> + </math> + +<!-- + The msub element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within subscript, but leaves both attributes unchanged within base. + + The msup element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within superscript, but leaves both attributes unchanged within + base. + + The msubsup element [...] increments scriptlevel by 1, and sets displaystyle + to "false", within subscript and superscript, but leaves both attributes + unchanged within base. + + The mmultiscripts element increments scriptlevel by 1, and sets displaystyle + to "false", within each of its arguments except base, but leaves both + attributes unchanged within base. + --> + <math> + <mstyle scriptsizemultiplier="2"> + <msub> + <mtext>O</mtext> + <mtext>O</mtext> + </msub> + <msup> + <mtext>O</mtext> + <mtext>O</mtext> + </msup> + <msubsup> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </msubsup> + <mmultiscripts> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + <mprescripts/> + <mtext>O</mtext> + <mtext>O</mtext> + </mmultiscripts> + </mstyle> + </math> + +<!-- + The munder element [...] always sets displaystyle to "false" within the + underscript, but increments scriptlevel by 1 only when accentunder is + "false". Within base, it always leaves both attributes unchanged. + + The mover element [...] always sets displaystyle to "false" within + overscript, but increments scriptlevel by 1 only when accent is "false". + Within base, it always leaves both attributes unchanged. + + The munderover [..] always sets displaystyle to "false" within underscript + and overscript, but increments scriptlevel by 1 only when accentunder or + accent, respectively, are "false". Within base, it always leaves both + attributes unchanged. +--> + <math> + <mstyle scriptsizemultiplier="2"> + <munder> + <mtext>O</mtext> + <mtext>O</mtext> + </munder> + <mover> + <mtext>O</mtext> + <mtext>O</mtext> + </mover> + <munderover> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </munderover> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/disabled-scriptlevel-1.xhtml b/layout/reftests/mathml/disabled-scriptlevel-1.xhtml new file mode 100644 index 000000000..5d710a787 --- /dev/null +++ b/layout/reftests/mathml/disabled-scriptlevel-1.xhtml @@ -0,0 +1,133 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>scriptlevel</title> + <meta charset="utf-8"/> + <style> + h2 { + text-align:center; + } + </style> + </head> + <body> + + <!-- Test scriptlevel on mstyle --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle scriptsizemultiplier="2"> + <mtext>O</mtext> + <mstyle scriptlevel="1"><mtext>O</mtext></mstyle> + </mstyle> + </math> + + <!-- The mfrac element sets displaystyle to "false", or if it was already + false increments scriptlevel by 1, within numerator and denominator. + --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle scriptsizemultiplier="2"> + <mstyle displaystyle="false"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + <mstyle displaystyle="true"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + </mstyle> + </math> + + <!-- The mroot element increments scriptlevel by 2, and sets + displaystyle to "false", within index, but leaves both attributes + unchanged within base. + The msqrt element leaves both attributes unchanged within its + argument. --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle scriptsizemultiplier="2"> + <mroot> + <mtext>O</mtext> + <mtext>O</mtext> + </mroot> + <msqrt> + <mtext>O</mtext> + </msqrt> + </mstyle> + </math> + +<!-- + The msub element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within subscript, but leaves both attributes unchanged within base. + + The msup element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within superscript, but leaves both attributes unchanged within + base. + + The msubsup element [...] increments scriptlevel by 1, and sets displaystyle + to "false", within subscript and superscript, but leaves both attributes + unchanged within base. + + The mmultiscripts element increments scriptlevel by 1, and sets displaystyle + to "false", within each of its arguments except base, but leaves both + attributes unchanged within base. + --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle scriptsizemultiplier="2"> + <msub> + <mtext>O</mtext> + <mtext>O</mtext> + </msub> + <msup> + <mtext>O</mtext> + <mtext>O</mtext> + </msup> + <msubsup> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </msubsup> + <mmultiscripts> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + <mprescripts/> + <mtext>O</mtext> + <mtext>O</mtext> + </mmultiscripts> + </mstyle> + </math> + +<!-- + The munder element [...] always sets displaystyle to "false" within the + underscript, but increments scriptlevel by 1 only when accentunder is + "false". Within base, it always leaves both attributes unchanged. + + The mover element [...] always sets displaystyle to "false" within + overscript, but increments scriptlevel by 1 only when accent is "false". + Within base, it always leaves both attributes unchanged. + + The munderover [..] always sets displaystyle to "false" within underscript + and overscript, but increments scriptlevel by 1 only when accentunder or + accent, respectively, are "false". Within base, it always leaves both + attributes unchanged. +--> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle scriptsizemultiplier="2"> + <munder> + <mtext>O</mtext> + <mtext>O</mtext> + </munder> + <mover> + <mtext>O</mtext> + <mtext>O</mtext> + </mover> + <munderover> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </munderover> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/displaystyle-1-ref.html b/layout/reftests/mathml/displaystyle-1-ref.html new file mode 100644 index 000000000..0a0bb4b28 --- /dev/null +++ b/layout/reftests/mathml/displaystyle-1-ref.html @@ -0,0 +1,149 @@ +<!DOCTYPE html> +<html> + <head> + <title>displaystyle</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test displaystyle on mstyle --> + <math> + <mstyle displaystyle="true"> + <munder><mo>O</mo><mo>O</mo></munder> + </mstyle> + <mstyle displaystyle="false"> + <msub><mo>O</mo><mo>O</mo></munder> + </mstyle> + </math> + + <!-- The mfrac element sets displaystyle to "false", or if it was already + false increments scriptlevel by 1, within numerator and denominator. + --> + <math> + <mstyle displaystyle="true"> + <mfrac> + <msub><mo>O</mo><mo>O</mo></msub> + <msub><mo>O</mo><mo>O</mo></msub> + </mfrac> + </mstyle> + </math> + + <!-- The mroot element increments scriptlevel by 2, and sets + displaystyle to "false", within index, but leaves both attributes + unchanged within base. + The msqrt element leaves both attributes unchanged within its + argument. --> + <math> + <mstyle displaystyle="true"> + <mroot> + <munder><mo>O</mo><mo>O</mo></munder> + <msub><mo>O</mo><mo>O</mo></msub> + </mroot> + <msqrt> + <munder><mo>O</mo><mo>O</mo></munder> + </msqrt> + </mstyle> + </math> + +<!-- + The msub element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within subscript, but leaves both attributes unchanged within base. + + The msup element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within superscript, but leaves both attributes unchanged within + base. + + The msubsup element [...] increments scriptlevel by 1, and sets displaystyle + to "false", within subscript and superscript, but leaves both attributes + unchanged within base. + + The mmultiscripts element increments scriptlevel by 1, and sets displaystyle + to "false", within each of its arguments except base, but leaves both + attributes unchanged within base. + --> + <math> + <mstyle displaystyle="true"> + <msub> + <munder><mo>O</mo><mo>O</mo></munder> + <msub><mo>O</mo><mo>O</mo></msub> + </msub> + <msup> + <munder><mo>O</mo><mo>O</mo></munder> + <msub><mo>O</mo><mo>O</mo></msub> + </msup> + <msubsup> + <munder><mo>O</mo><mo>O</mo></munder> + <msub><mo>O</mo><mo>O</mo></msub> + <msub><mo>O</mo><mo>O</mo></msub> + </msubsup> + <mmultiscripts> + <munder><mo>O</mo><mo>O</mo></munder> + <msub><mo>O</mo><mo>O</mo></msub> + <msub><mo>O</mo><mo>O</mo></msub> + <mprescripts/> + <msub><mo>O</mo><mo>O</mo></msub> + <msub><mo>O</mo><mo>O</mo></msub> + </mmultiscripts> + </mstyle> + </math> + +<!-- + The munder element [...] always sets displaystyle to "false" within the + underscript, but increments scriptlevel by 1 only when accentunder is + "false". Within base, it always leaves both attributes unchanged. + + The mover element [...] always sets displaystyle to "false" within + overscript, but increments scriptlevel by 1 only when accent is "false". + Within base, it always leaves both attributes unchanged. + + The munderover [..] always sets displaystyle to "false" within underscript + and overscript, but increments scriptlevel by 1 only when accentunder or + accent, respectively, are "false". Within base, it always leaves both + attributes unchanged. +--> + <math> + <mstyle displaystyle="true"> + <munder> + <munder><mo>O</mo><mo>O</mo></munder> + <msub><mo>O</mo><mo>O</mo></msub> + </munder> + <mover> + <munder><mo>O</mo><mo>O</mo></munder> + <msub><mo>O</mo><mo>O</mo></msub> + </mover> + <munderover> + <munder><mo>O</mo><mo>O</mo></munder> + <msub><mo>O</mo><mo>O</mo></msub> + <msub><mo>O</mo><mo>O</mo></msub> + </munderover> + </mstyle> + </math> + +<!-- + The displaystyle attribute is allowed on the mtable element to set the + inherited value of the attribute. If the attribute is not present, the + mtable element sets displaystyle to "false" within the table elements. +--> + <math> + <mstyle displaystyle="false"> + <mtable displaystyle="true"> + <mtr> + <mtd> + <munder><mo>O</mo><mo>O</mo></munder> + </mtd> + </mtr> + </mtable> + </mstyle> + <mstyle displaystyle="true"> + <mtable> + <mtr> + <mtd> + <msub><mo>O</mo><mo>O</mo></msub> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/displaystyle-1.html b/layout/reftests/mathml/displaystyle-1.html new file mode 100644 index 000000000..c35c6ef85 --- /dev/null +++ b/layout/reftests/mathml/displaystyle-1.html @@ -0,0 +1,149 @@ +<!DOCTYPE html> +<html> + <head> + <title>displaystyle</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test displaystyle on mstyle --> + <math> + <mstyle displaystyle="true"> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </mstyle> + <mstyle displaystyle="false"> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </mstyle> + </math> + + <!-- The mfrac element sets displaystyle to "false", or if it was already + false increments scriptlevel by 1, within numerator and denominator. + --> + <math> + <mstyle displaystyle="true"> + <mfrac> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </mfrac> + </mstyle> + </math> + + <!-- The mroot element increments scriptlevel by 2, and sets + displaystyle to "false", within index, but leaves both attributes + unchanged within base. + The msqrt element leaves both attributes unchanged within its + argument. --> + <math> + <mstyle displaystyle="true"> + <mroot> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </mroot> + <msqrt> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </msqrt> + </mstyle> + </math> + +<!-- + The msub element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within subscript, but leaves both attributes unchanged within base. + + The msup element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within superscript, but leaves both attributes unchanged within + base. + + The msubsup element [...] increments scriptlevel by 1, and sets displaystyle + to "false", within subscript and superscript, but leaves both attributes + unchanged within base. + + The mmultiscripts element increments scriptlevel by 1, and sets displaystyle + to "false", within each of its arguments except base, but leaves both + attributes unchanged within base. + --> + <math> + <mstyle displaystyle="true"> + <msub> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </msub> + <msup> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </msup> + <msubsup> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </msubsup> + <mmultiscripts> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <mprescripts/> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </mmultiscripts> + </mstyle> + </math> + +<!-- + The munder element [...] always sets displaystyle to "false" within the + underscript, but increments scriptlevel by 1 only when accentunder is + "false". Within base, it always leaves both attributes unchanged. + + The mover element [...] always sets displaystyle to "false" within + overscript, but increments scriptlevel by 1 only when accent is "false". + Within base, it always leaves both attributes unchanged. + + The munderover [..] always sets displaystyle to "false" within underscript + and overscript, but increments scriptlevel by 1 only when accentunder or + accent, respectively, are "false". Within base, it always leaves both + attributes unchanged. +--> + <math> + <mstyle displaystyle="true"> + <munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </munder> + <mover> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </mover> + <munderover> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </munderover> + </mstyle> + </math> + +<!-- + The displaystyle attribute is allowed on the mtable element to set the + inherited value of the attribute. If the attribute is not present, the + mtable element sets displaystyle to "false" within the table elements. +--> + <math> + <mstyle displaystyle="false"> + <mtable displaystyle="true"> + <mtr> + <mtd> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </mtd> + </mtr> + </mtable> + </mstyle> + <mstyle displaystyle="true"> + <mtable> + <mtr> + <mtd> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + </mtd> + </mtr> + </mtable> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/displaystyle-2-ref.html b/layout/reftests/mathml/displaystyle-2-ref.html new file mode 100644 index 000000000..d36a9ce5a --- /dev/null +++ b/layout/reftests/mathml/displaystyle-2-ref.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <title>displaystyle</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test the effect of displaystyle on munder, mover and munderover --> + <math> + <mstyle displaystyle="true"> + <munder><mo>O</mo><mo>O</mo></munder> + <mover><mo>O</mo><mo>O</mo></mover> + <munderover><mo>O</mo><mo>O</mo><mo>O</mo></munderover> + </mstyle> + <mstyle displaystyle="false"> + <msub><mo>O</mo><mo>O</mo></msub> + <msup><mo>O</mo><mo>O</mo></msup> + <msubsup><mo>O</mo><mo>O</mo><mo>O</mo></msubsup> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/displaystyle-2.html b/layout/reftests/mathml/displaystyle-2.html new file mode 100644 index 000000000..4ae8b044f --- /dev/null +++ b/layout/reftests/mathml/displaystyle-2.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <title>displaystyle</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test the effect of displaystyle on munder, mover and munderover --> + <math> + <mstyle displaystyle="true"> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <mover><mo movablelimits="true">O</mo><mo>O</mo></mover> + <munderover><mo movablelimits="true">O</mo><mo>O</mo><mo>O</mo></munderover> + </mstyle> + <mstyle displaystyle="false"> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <mover><mo movablelimits="true">O</mo><mo>O</mo></mover> + <munderover><mo movablelimits="true">O</mo><mo>O</mo><mo>O</mo></munderover> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/displaystyle-3-ref.html b/layout/reftests/mathml/displaystyle-3-ref.html new file mode 100644 index 000000000..564f4cc5d --- /dev/null +++ b/layout/reftests/mathml/displaystyle-3-ref.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html> + <head> + <title>displaystyle</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test dynamic change of displaystyle --> + <math id="m1" displaystyle="true"> + <munder><mo>O</mo><mo>O</mo></munder> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </math> + <math> + <mstyle id="m2" displaystyle="true"> + <munder><mo>O</mo><mo>O</mo></munder> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </mstyle> + </math> + <math> + <mtable id="m3" displaystyle="true"> + <mtr> + <mtd> + <munder><mo>O</mo><mo>O</mo></munder> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </mtd> + </mtr> + </mtable> + </math> + <math id="m4" displaystyle="false"> + <msub><mo>O</mo><mo>O</mo></msub> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </math> + <math> + <mstyle id="m5" displaystyle="false"> + <msub><mo>O</mo><mo>O</mo></msub> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </mstyle> + </math> + <math> + <mtable id="m6" displaystyle="false"> + <mtr> + <mtd> + <msub><mo>O</mo><mo>O</mo></msub> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </mtd> + </mtr> + </mtable> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/displaystyle-3.html b/layout/reftests/mathml/displaystyle-3.html new file mode 100644 index 000000000..680aff6d1 --- /dev/null +++ b/layout/reftests/mathml/displaystyle-3.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>displaystyle</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() { + document.getElementById("m1").setAttribute("displaystyle", "true"); + document.getElementById("m2").setAttribute("displaystyle", "true"); + document.getElementById("m3").setAttribute("displaystyle", "true"); + document.getElementById("m4").removeAttribute("displaystyle"); + document.getElementById("m5").removeAttribute("displaystyle"); + document.getElementById("m6").removeAttribute("displaystyle"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </head> + <body> + + <!-- Test dynamic change of displaystyle --> + <math id="m1"> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </math> + <math> + <mstyle id="m2"> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </mstyle> + </math> + <math> + <mtable id="m3"> + <mtr> + <mtd> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </mtd> + </mtr> + </mtable> + </math> + <math id="m4" displaystyle="true"> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </math> + <math> + <mstyle id="m5" displaystyle="true"> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </mstyle> + </math> + <math> + <mtable id="m6" displaystyle="true"> + <mtr> + <mtd> + <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> + <mfrac><mi>x</mi><mi>y</mi></mfrac> + </mtd> + </mtr> + </mtable> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/displaystyle-4-ref.html b/layout/reftests/mathml/displaystyle-4-ref.html new file mode 100644 index 000000000..7b333e97f --- /dev/null +++ b/layout/reftests/mathml/displaystyle-4-ref.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> + <head> + <title>displaystyle</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test dynamic change (see bug 832800) --> + <math> + <mstyle displaystyle="true"> + <mfrac> + <mrow> + <mi>X</mi> + <mo id="mathOperator" mathbackground="red">+</mo> + <mfrac> + <mrow><mi>X</mi></mrow> + <mrow><mi>X</mi></mrow> + </mfrac> + </mrow> + <mrow> + <mi>X</mi> + </mrow> + </mfrac> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/displaystyle-4.html b/layout/reftests/mathml/displaystyle-4.html new file mode 100644 index 000000000..3dd47baa7 --- /dev/null +++ b/layout/reftests/mathml/displaystyle-4.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>displaystyle</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() { + document.getElementById('mathOperator'). + setAttribute('mathbackground', 'red'); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </head> + <body> + + <!-- Test dynamic change (see bug 832800) --> + <math> + <mstyle displaystyle="true"> + <mfrac> + <mrow> + <mi>X</mi> + <mo id="mathOperator">+</mo> + <mfrac> + <mrow><mi>X</mi></mrow> + <mrow><mi>X</mi></mrow> + </mfrac> + </mrow> + <mrow> + <mi>X</mi> + </mrow> + </mfrac> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/dtls-1-ref.html b/layout/reftests/mathml/dtls-1-ref.html new file mode 100644 index 000000000..0257d61af --- /dev/null +++ b/layout/reftests/mathml/dtls-1-ref.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<head> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "dtls-1"; + src: url(../fonts/math/dtls-1.otf); + } + math { + font-family: dtls-1; + } + </style> +</head> +<body> + <math> + <mover accent="true"> + <mn>b</mn> + <mn>c</mn> + </mover> + <munder accentunder="true"> + <mn>c</mn> + <mn>c</mn> + </munder> + <munderover accent="true" accentunder="true"> + <mn>b</mn> + <mn>c</mn> + <mn>c</mn> + </munderover> + </math> + + <p> + + <math> + <mover accent="true"> + <mover accent="true"> + <mn>b</mn> + <mn>b</mn> + </mover> + <mn>c</mn> + </mover> + <mover accent="true"> + <mover accent="true"> + <mn>b</mn> + <mn>b</mn> + </mover> + <mover accent="true"> + <mn>b</mn> + <mn>c</mn> + </mover> + </mover> + <munderover accent="true" accentunder="true"> + <munderover accent="true" accentunder="true"> + <mn>b</mn> + <mn>b</mn> + <mn>b</mn> + </munderover> + <mn>c</mn> + <mn>c</mn> + </munderover> + <munderover accent="true" accentunder="true"> + <munderover accent="true" accentunder="true"> + <mn>b</mn> + <mn>b</mn> + <mn>b</mn> + </munderover> + <munderover accent="true" accentunder="true"> + <mn>b</mn> + <mn>c</mn> + <mn>c</mn> + </munderover> + <munderover accent="true" accentunder="true"> + <mn>b</mn> + <mn>c</mn> + <mn>c</mn> + </munderover> + </munderover> + </math> + + <p> + + <math> + <mover accent="true"> + <mn>c</mn> + <mn>c</mn> + </mover> + <munder accentunder="true"> + <mn>c</mn> + <mn>c</mn> + </munder> + <munderover accent="true" accentunder="true"> + <mn>c</mn> + <mn>c</mn> + <mn>c</mn> + </munderover> + </math> + + <p> + + <math> + <mover accent="false"> + <mn>c</mn> + <mn>c</mn> + </mover> + <munderover accent="false" accentunder="false"> + <mn>c</mn> + <mn>c</mn> + <mn>c</mn> + </munderover> + </math> + + <p> + + <math> + <mover> + <mo movablelimits="true">c</mo> + <mo>c</mo> + </mover> + <munderover> + <mo movablelimits="true">c</mo> + <mo>c</mo> + <mo>c</mo> + </munderover> + <mover accent="true"> + <mo movablelimits="true">c</mo> + <mo>c</mo> + </mover> + <munderover accent="true"> + <mo movablelimits="true">c</mo> + <mo>c</mo> + <mo>c</mo> + </munderover> + </math> +</body> diff --git a/layout/reftests/mathml/dtls-1.html b/layout/reftests/mathml/dtls-1.html new file mode 100644 index 000000000..396324417 --- /dev/null +++ b/layout/reftests/mathml/dtls-1.html @@ -0,0 +1,134 @@ +<!DOCTYPE html> +<head> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "dtls-1"; + src: url(../fonts/math/dtls-1.otf); + } + math { + font-family: dtls-1; + } + </style> +</head> +<body> + <math> + <mover accent="true"> + <mn>a</mn> + <mn>a</mn> + </mover> + <munder accentunder="true"> + <mn>a</mn> + <mn>a</mn> + </munder> + <munderover accent="true" accentunder="true"> + <mn>a</mn> + <mn>a</mn> + <mn>a</mn> + </munderover> + </math> + + <p> + + <math> + <mover accent="true"> + <mover accent="true"> + <mn>a</mn> + <mn>a</mn> + </mover> + <mn>a</mn> + </mover> + <mover accent="true"> + <mover accent="true"> + <mn>a</mn> + <mn>a</mn> + </mover> + <mover accent="true"> + <mn>a</mn> + <mn>a</mn> + </mover> + </mover> + <munderover accent="true" accentunder="true"> + <munderover accent="true" accentunder="true"> + <mn>a</mn> + <mn>a</mn> + <mn>a</mn> + </munderover> + <mn>a</mn> + <mn>a</mn> + </munderover> + <munderover accent="true" accentunder="true"> + <munderover accent="true" accentunder="true"> + <mn>a</mn> + <mn>a</mn> + <mn>a</mn> + </munderover> + <munderover accent="true" accentunder="true"> + <mn>a</mn> + <mn>a</mn> + <mn>a</mn> + </munderover> + <munderover accent="true" accentunder="true"> + <mn>a</mn> + <mn>a</mn> + <mn>a</mn> + </munderover> + </munderover> + </math> + + <p> + + <math> + <mstyle style="font-feature-settings: 'dtls' 0"> + <mover accent="true"> + <mn>a</mn> + <mn>a</mn> + </mover> + <munder accentunder="true"> + <mn>a</mn> + <mn>a</mn> + </munder> + <munderover accent="true" accentunder="true"> + <mn>a</mn> + <mn>a</mn> + <mn>a</mn> + </munderover> + </mstyle> + </math> + + <p> + + <math> + <mover accent="false"> + <mn>a</mn> + <mn>a</mn> + </mover> + <munderover accent="false" accentunder="false"> + <mn>a</mn> + <mn>a</mn> + <mn>a</mn> + </munderover> + </math> + + <p> + + <math> + <mover> + <mo movablelimits="true">a</mo> + <mo>a</mo> + </mover> + <munderover> + <mo movablelimits="true">a</mo> + <mo>a</mo> + <mo>a</mo> + </munderover> + <mover accent="true"> + <mo movablelimits="true">a</mo> + <mo>a</mo> + </mover> + <munderover accent="true"> + <mo movablelimits="true">a</mo> + <mo>a</mo> + <mo>a</mo> + </munderover> + </math> +</body> diff --git a/layout/reftests/mathml/dtls-2-ref.html b/layout/reftests/mathml/dtls-2-ref.html new file mode 100644 index 000000000..3a4e28375 --- /dev/null +++ b/layout/reftests/mathml/dtls-2-ref.html @@ -0,0 +1,175 @@ +<!DOCTYPE html> +<html> + <head> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "dtls-1"; + src: url(../fonts/math/dtls-1.otf); + } + </style> + </head> + <body> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>b</mo> + <mo>c</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>b</mo> + <mo>c</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>b</mo> + <!-- deliberately invalid --> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mo>c</mo> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mover accent="true"> + <mn>a</mn> + <mn>a</mn> + </mover> + <mover accent="true"> + <mn>a</mn> + <mn>a</mn> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mrow> + <mrow> + <mrow> + <mo>b</mo> + </mrow> + </mrow> + </mrow> + <mo>c</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style ="font-family: 'dtls-1';"> + <mover accent="true"> + <mover accent="true"> + <mo>b</mo> + <mo>c</mo> + </mover> + <mover accent="true"> + <mo>b</mo> + <mo>c</mo> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle5" style ="font-family: 'dtls-1'; font-feature-settings: 'dtls' 0"> + <mover accent="true"> + <mover accent="true"> + <mo>c</mo> + <mo>c</mo> + </mover> + <mover accent="true"> + <mo>c</mo> + <mo>c</mo> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover id="mover1" accent="true"> + <mo>b</mo> + <mo>c</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="false" id="mover2"> + <mo>c</mo> + <mo>c</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover id="mover3"> + <mo>c</mo> + <mo>c</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo movablelimits="true">c</mo> + <mo>c</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>b</mo> + <mo>c</mo> + </mover> + </mstyle> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/dtls-2.html b/layout/reftests/mathml/dtls-2.html new file mode 100644 index 000000000..0d91be636 --- /dev/null +++ b/layout/reftests/mathml/dtls-2.html @@ -0,0 +1,213 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "dtls-1"; + src: url(../fonts/math/dtls-1.otf); + } + </style> + </head> + <body> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true" id="mover0"> + <mo>a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>a</mo> + <mo id="mo0"></mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>a</mo> + <mo id="mo1">a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';" id="mstyle0"> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle1"> + <mover accent="true"> + <mover accent="true"> + <mn>a</mn> + <mn>a</mn> + </mover> + <mover accent="true"> + <mn>a</mn> + <mn>a</mn> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mrow> + <mrow> + <mrow id="mrow0"> + </mrow> + </mrow> + </mrow> + <mo>a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle4" style ="font-family: 'dtls-1'; font-feature-settings: 'dtls' 0"> + <mover accent="true"> + <mover accent="true"> + <mo>a</mo> + <mo>a</mo> + </mover> + <mover accent="true"> + <mo>a</mo> + <mo>a</mo> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle5" style ="font-family: 'dtls-1';"> + <mover accent="true"> + <mover accent="true"> + <mo>a</mo> + <mo>a</mo> + </mover> + <mover accent="true"> + <mo>a</mo> + <mo>a</mo> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover id="mover1"> + <mo>a</mo> + <mo>a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true" id="mover2"> + <mo>a</mo> + <mo>a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true" id="mover3"> + <mo>a</mo> + <mo>a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo id="mo2">a</mo> + <mo>a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo id="mo3" movablelimits="true">a</mo> + <mo>a</mo> + </mover> + </mstyle> + </math> + + <script> + function doTest() + { + var mo = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mo"); + mo.innerHTML = "a"; + // An added child gets dtls font feature + document.getElementById("mover0").appendChild(mo); + // A child with changed text gets dtls font feature + document.getElementById("mo0").innerHTML = "a"; + // A relocated child loses dtls font feature setting + document.getElementById("mstyle0").appendChild(document.getElementById("mo1")); + // A change in style + document.getElementById("mstyle1").setAttribute("style", "font-family: 'dtls-1';"); + + // dtls gets added to descendants as well + var mo1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mo"); + mo1.innerHTML = "a"; + document.getElementById("mrow0").appendChild(mo1); + // removing explicit dtls setting works + document.getElementById("mstyle4").setAttribute( + "style", "font-family: 'dtls-1';") + // setting an explicit dtls font feature + document.getElementById("mstyle5").setAttribute( + "style" , "font-family: 'dtls-1'; font-feature-settings: 'dtls' 0"); + + // Adding accent="true" applies dtls font feature + document.getElementById("mover1").setAttribute("accent", "true"); + // Changing accent="true" to false removes dtls font feature + document.getElementById("mover2").setAttribute("accent", "false"); + // Removing accent="true" removes dtls font feature + document.getElementById("mover3").removeAttribute("accent"); + + // Movablelimits disables dtls font feature + document.getElementById("mo2").setAttribute("movablelimits", "true"); + // Removing movablelimits restores dtls font feature + document.getElementById("mo3").removeAttribute("movablelimits"); + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </body> +</html> diff --git a/layout/reftests/mathml/dtls-3-ref.html b/layout/reftests/mathml/dtls-3-ref.html new file mode 100644 index 000000000..ce608accc --- /dev/null +++ b/layout/reftests/mathml/dtls-3-ref.html @@ -0,0 +1,175 @@ +<!DOCTYPE html> +<html> + <head> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "dtls-1"; + src: url(../fonts/math/dtls-1.otf); + } + </style> + </head> + <body> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>𝔟</mo> + <mo>𝔠</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>𝔟</mo> + <mo>𝔠</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>𝔟</mo> + <!-- deliberately invalid --> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mo>𝔠</mo> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mover accent="true"> + <mo>𝔟</mo> + <mo>𝔟</mo> + </mover> + <mover accent="true"> + <mo>𝔟</mo> + <mo>𝔠</mo> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mrow> + <mrow> + <mrow> + <mo>𝔟</mo> + </mrow> + </mrow> + </mrow> + <mo>𝔠</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style ="font-family: 'dtls-1';"> + <mover accent="true"> + <mover accent="true"> + <mo>𝔟</mo> + <mo>𝔠</mo> + </mover> + <mover accent="true"> + <mo>𝔟</mo> + <mo>𝔠</mo> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle5" style ="font-family: 'dtls-1'; font-feature-settings: 'dtls' 0"> + <mover accent="true"> + <mover accent="true"> + <mo>𝔠</mo> + <mo>𝔠</mo> + </mover> + <mover accent="true"> + <mo>𝔠</mo> + <mo>𝔠</mo> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover id="mover1" accent="true"> + <mo>𝔟</mo> + <mo>𝔠</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="false" id="mover2"> + <mo>𝔠</mo> + <mo>𝔠</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover id="mover3"> + <mo>𝔠</mo> + <mo>𝔠</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>𝔞</mo> + <mo>c</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo>b</mo> + <mo>c</mo> + </mover> + </mstyle> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/dtls-3.html b/layout/reftests/mathml/dtls-3.html new file mode 100644 index 000000000..e36ce299c --- /dev/null +++ b/layout/reftests/mathml/dtls-3.html @@ -0,0 +1,216 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "dtls-1"; + src: url(../fonts/math/dtls-1.otf); + } + </style> + </head> + <body> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true" id="mover0"> + <mo mathvariant="fraktur">a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo mathvariant="fraktur">a</mo> + <mo mathvariant="fraktur" id="mo0"></mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo mathvariant="fraktur">a</mo> + <mo mathvariant="fraktur" id="mo1">a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';" id="mstyle0"> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle1"> + <mover accent="true"> + <mover accent="true"> + <mn mathvariant="fraktur">a</mn> + <mn mathvariant="fraktur">a</mn> + </mover> + <mover accent="true"> + <mn mathvariant="fraktur">a</mn> + <mn mathvariant="fraktur">a</mn> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mrow> + <mrow> + <mrow id="mrow0"> + </mrow> + </mrow> + </mrow> + <mo mathvariant="fraktur">a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle4" style ="font-family: 'dtls-1'; font-feature-settings: 'dtls' 0"> + <mover accent="true"> + <mover accent="true"> + <mo mathvariant="fraktur">a</mo> + <mo mathvariant="fraktur">a</mo> + </mover> + <mover accent="true"> + <mo mathvariant="fraktur">a</mo> + <mo mathvariant="fraktur">a</mo> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle5" style ="font-family: 'dtls-1';"> + <mover accent="true"> + <mover accent="true"> + <mo mathvariant="fraktur">a</mo> + <mo mathvariant="fraktur">a</mo> + </mover> + <mover accent="true"> + <mo mathvariant="fraktur">a</mo> + <mo mathvariant="fraktur">a</mo> + </mover> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover id="mover1"> + <mo mathvariant="fraktur">a</mo> + <mo mathvariant="fraktur">a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true" id="mover2"> + <mo mathvariant="fraktur">a</mo> + <mo mathvariant="fraktur">a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true" id="mover3"> + <mo mathvariant="fraktur">a</mo> + <mo mathvariant="fraktur">a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo id="mo2">a</mo> + <mo>a</mo> + </mover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'dtls-1';"> + <mover accent="true"> + <mo mathvariant="fraktur" id="mo3">a</mo> + <mo>a</mo> + </mover> + </mstyle> + </math> + + <script> + function doTest() + { + var mo = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mo"); + mo.innerHTML = "a"; + mo.setAttribute("mathvariant", "fraktur"); + // An added child gets dtls font feature + document.getElementById("mover0").appendChild(mo); + // A child with changed text gets dtls font feature + document.getElementById("mo0").innerHTML = "a"; + // A relocated child loses dtls font feature setting + document.getElementById("mstyle0").appendChild(document.getElementById("mo1")); + // A change in style + document.getElementById("mstyle1").setAttribute("style", "font-family: 'dtls-1';"); + + // dtls gets added to descendants as well + var mo1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mo"); + mo1.innerHTML = "a"; + mo1.setAttribute("mathvariant", "fraktur"); + document.getElementById("mrow0").appendChild(mo1); + // removing explicit dtls setting works + document.getElementById("mstyle4").setAttribute( + "style", "font-family: 'dtls-1';") + // setting an explicit dtls font feature + document.getElementById("mstyle5").setAttribute( + "style" , "font-family: 'dtls-1'; font-feature-settings: 'dtls' 0"); + + // Adding accent="true" applies dtls font feature + document.getElementById("mover1").setAttribute("accent", "true"); + // Changing accent="true" to false removes dtls font feature + document.getElementById("mover2").setAttribute("accent", "false"); + // Removing accent="true" removes dtls font feature + document.getElementById("mover3").removeAttribute("accent"); + + // dtls applies when mathvariant is set + document.getElementById("mo2").setAttribute("mathvariant", "fraktur"); + + // dtls still applies when mathvariant is removed + document.getElementById("mo3").removeAttribute("mathvariant"); + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </body> +</html> diff --git a/layout/reftests/mathml/dynamic-mi-ref.xhtml b/layout/reftests/mathml/dynamic-mi-ref.xhtml new file mode 100644 index 000000000..672592bbb --- /dev/null +++ b/layout/reftests/mathml/dynamic-mi-ref.xhtml @@ -0,0 +1,11 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>Reftest for bug 409125</title> +</head> + +<body> + +<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mi id="mi">mi</mi></math> + +</body> +</html> diff --git a/layout/reftests/mathml/dynamic-mi.xhtml b/layout/reftests/mathml/dynamic-mi.xhtml new file mode 100644 index 000000000..beabdb238 --- /dev/null +++ b/layout/reftests/mathml/dynamic-mi.xhtml @@ -0,0 +1,11 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>Reftest for bug 409125</title> +</head> + +<body onload="document.getElementById('mi').firstChild.data = 'mi';"> + +<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mi id="mi"> </mi></math> + +</body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-1-ref.html b/layout/reftests/mathml/embellished-op-1-1-ref.html new file mode 100644 index 000000000..35e7ae42a --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-1-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: maction</title> + </head> + + <body> + <div> + <!-- maction whose selected child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <maction actiontype="toggle" selection="2"> + <mo stretchy="false">¯</mo> + <mo stretchy="false">¯</mo> + </maction> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-1.html b/layout/reftests/mathml/embellished-op-1-1.html new file mode 100644 index 000000000..0e9ae3b9d --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-1.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: maction</title> + </head> + + <body> + <div> + <!-- maction whose selected child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <maction actiontype="toggle" selection="2"> + <mo stretchy="false">¯</mo> + <mo>¯</mo> + </maction> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-2-ref.html b/layout/reftests/mathml/embellished-op-1-2-ref.html new file mode 100644 index 000000000..135091591 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-2-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: mrow</title> + </head> + + <body> + <div> + <!-- mrow whose child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mo stretchy="false">¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-2.html b/layout/reftests/mathml/embellished-op-1-2.html new file mode 100644 index 000000000..8cf655e58 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-2.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: mrow</title> + </head> + + <body> + <div> + <!-- mrow whose child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mo>¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-3-ref.html b/layout/reftests/mathml/embellished-op-1-3-ref.html new file mode 100644 index 000000000..f05828f8b --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-3-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: mstyle</title> + </head> + + <body> + <div> + <!-- mstyle whose child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mstyle><mo stretchy="false">¯</mo></mstyle> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-3.html b/layout/reftests/mathml/embellished-op-1-3.html new file mode 100644 index 000000000..a2297da04 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-3.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: mstyle</title> + </head> + + <body> + <div> + <!-- mstyle whose child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mstyle><mo>¯</mo></mstyle> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-4-ref.html b/layout/reftests/mathml/embellished-op-1-4-ref.html new file mode 100644 index 000000000..5dbe3c5ef --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-4-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: mpadded</title> + </head> + + <body> + <div> + <!-- mpadded whose child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mpadded><mo stretchy="false">¯</mo></mpadded> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-4.html b/layout/reftests/mathml/embellished-op-1-4.html new file mode 100644 index 000000000..841d0648a --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-4.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: mpadded</title> + </head> + + <body> + <div> + <!-- mpadded whose child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mpadded><mo>¯</mo></mpadded> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-5-ref.html b/layout/reftests/mathml/embellished-op-1-5-ref.html new file mode 100644 index 000000000..8cd6bcd95 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-5-ref.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: mphantom</title> + </head> + + <body> + <div> + <!-- mphantom whose child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mtext>g</mtext> + <mphantom><mo stretchy="false">¯</mo></mphantom> + <mtext>h</mtext> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-1-5.html b/layout/reftests/mathml/embellished-op-1-5.html new file mode 100644 index 000000000..19da59a07 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-1-5.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 1: mphantom</title> + </head> + + <body> + <div> + <!-- mphantom whose child is embellished op --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mtext>g</mtext> + <mphantom><mo>¯</mo></mphantom> + <mtext>h</mtext> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-2-1-ref.html b/layout/reftests/mathml/embellished-op-2-1-ref.html new file mode 100644 index 000000000..890845ec1 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-2-1-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: ignore space-like children</title> + </head> + + <body> + <div> + <!-- first child space-like --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mtext>g</mtext><mo stretchy="false">¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-2-1.html b/layout/reftests/mathml/embellished-op-2-1.html new file mode 100644 index 000000000..9c36b95eb --- /dev/null +++ b/layout/reftests/mathml/embellished-op-2-1.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: ignore space-like children</title> + </head> + + <body> + <div> + <!-- first child space-like --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mtext>g</mtext><mo>¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-2-2-ref.html b/layout/reftests/mathml/embellished-op-2-2-ref.html new file mode 100644 index 000000000..670345564 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-2-2-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: ignore space-like children</title> + </head> + + <body> + <div> + <!-- last child space-like --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mo stretchy="false">¯</mo><mtext>g</mtext></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-2-2.html b/layout/reftests/mathml/embellished-op-2-2.html new file mode 100644 index 000000000..59696fd9d --- /dev/null +++ b/layout/reftests/mathml/embellished-op-2-2.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: ignore space-like children</title> + </head> + + <body> + <div> + <!-- last child space-like --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mo>¯</mo><mtext>g</mtext></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-2-3-ref.html b/layout/reftests/mathml/embellished-op-2-3-ref.html new file mode 100644 index 000000000..5041324f3 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-2-3-ref.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: ignore space-like children</title> + </head> + + <body> + <div> + <!-- first and last children space-like --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mtext>g</mtext> + <mo stretchy="false">¯</mo> + <mtext>h</mtext> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-2-3.html b/layout/reftests/mathml/embellished-op-2-3.html new file mode 100644 index 000000000..f2220eff8 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-2-3.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: ignore space-like children</title> + </head> + + <body> + <div> + <!-- first and last children space-like --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mtext>g</mtext><mo>¯</mo><mtext>h</mtext></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-2-4-ref.html b/layout/reftests/mathml/embellished-op-2-4-ref.html new file mode 100644 index 000000000..0b3946517 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-2-4-ref.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: ignore space-like children</title> + </head> + + <body> + <div> + <!-- many space-like children --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mspace/> + <mtext>g</mtext> + <mspace/> + <mo stretchy="false">¯</mo> + <mspace/> + <mspace/> + <mtext>h</mtext> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-2-4.html b/layout/reftests/mathml/embellished-op-2-4.html new file mode 100644 index 000000000..199b5e8fc --- /dev/null +++ b/layout/reftests/mathml/embellished-op-2-4.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: ignore space-like children</title> + </head> + + <body> + <div> + <!-- many space-like children --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mspace/> + <mtext>g</mtext> + <mspace/> + <mo>¯</mo> + <mspace/> + <mspace/> + <mtext>h</mtext> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-1-ref.html b/layout/reftests/mathml/embellished-op-3-1-ref.html new file mode 100644 index 000000000..fb651c11a --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-1-ref.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like maction --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <maction actiontype="toggle" selection="2"> + <mi>g</mi> + <mspace/> + </maction> + <mo stretchy="false">¯</mo> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-1.html b/layout/reftests/mathml/embellished-op-3-1.html new file mode 100644 index 000000000..c229de35d --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-1.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like maction --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <maction actiontype="toggle" selection="2"> + <mi>g</mi> + <mspace/> + </maction> + <mo>¯</mo> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-2-ref.html b/layout/reftests/mathml/embellished-op-3-2-ref.html new file mode 100644 index 000000000..2d1510aa9 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-2-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like mrow --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mrow><mspace/></mrow><mo stretchy="false">¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-2.html b/layout/reftests/mathml/embellished-op-3-2.html new file mode 100644 index 000000000..4b0e6f094 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-2.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like mrow --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mrow><mspace/></mrow><mo>¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-3-ref.html b/layout/reftests/mathml/embellished-op-3-3-ref.html new file mode 100644 index 000000000..9c22107eb --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-3-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like mstyle --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mstyle><mspace/></mstyle><mo stretchy="false">¯</mo> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-3.html b/layout/reftests/mathml/embellished-op-3-3.html new file mode 100644 index 000000000..826b86adb --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-3.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like mstyle --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mstyle><mspace/></mstyle><mo>¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-4-ref.html b/layout/reftests/mathml/embellished-op-3-4-ref.html new file mode 100644 index 000000000..6e8b9c94a --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-4-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like mpadded --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mpadded><mspace/></mpadded><mo stretchy="false">¯</mo> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-4.html b/layout/reftests/mathml/embellished-op-3-4.html new file mode 100644 index 000000000..a822be31c --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-4.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like mpadded --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mpadded><mspace/></mpadded><mo>¯</mo> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-5-ref.html b/layout/reftests/mathml/embellished-op-3-5-ref.html new file mode 100644 index 000000000..f0e514149 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-5-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like mphantom --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mphantom><mspace/></mphantom><mo stretchy="false">¯</mo> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-3-5.html b/layout/reftests/mathml/embellished-op-3-5.html new file mode 100644 index 000000000..e681513d4 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-3-5.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators: maction and mrow-like as space-like children + </title> + </head> + + <body> + <div> + <!-- space-like mphantom --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mphantom><mspace/></mphantom><mo>¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-4-1-ref.html b/layout/reftests/mathml/embellished-op-4-1-ref.html new file mode 100644 index 000000000..034f4f535 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-4-1-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 4-1: some non-space-like children</title> + </head> + + <body> + <div> + <!-- two embellished operators --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow> + <mo stretchy="false">¯</mo> + <mo stretchy="false">¯</mo> + </mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-4-1.html b/layout/reftests/mathml/embellished-op-4-1.html new file mode 100644 index 000000000..b35119c50 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-4-1.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 4-1: some non-space-like children</title> + </head> + + <body> + <div> + <!-- two embellished operators --> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mo>¯</mo><mo>¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-4-2-ref.html b/layout/reftests/mathml/embellished-op-4-2-ref.html new file mode 100644 index 000000000..2b59fc59a --- /dev/null +++ b/layout/reftests/mathml/embellished-op-4-2-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 4-2: some non-space-like children</title> + </head> + + <body> + <div> + <!-- a non-space-like child before--> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mi>g</mi><mo stretchy="false">¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-4-2.html b/layout/reftests/mathml/embellished-op-4-2.html new file mode 100644 index 000000000..508e8684f --- /dev/null +++ b/layout/reftests/mathml/embellished-op-4-2.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 4-2: some non-space-like children</title> + </head> + + <body> + <div> + <!-- a non-space-like child before--> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mi>g</mi><mo>¯</mo></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-4-3-ref.html b/layout/reftests/mathml/embellished-op-4-3-ref.html new file mode 100644 index 000000000..c898799d7 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-4-3-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 4-3: some non-space-like children</title> + </head> + + <body> + <div> + <!-- a non-space-like child after--> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mo stretchy="false">¯</mo><mi>g</mi></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-4-3.html b/layout/reftests/mathml/embellished-op-4-3.html new file mode 100644 index 000000000..fa58c70cd --- /dev/null +++ b/layout/reftests/mathml/embellished-op-4-3.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 4-3: some non-space-like children</title> + </head> + + <body> + <div> + <!-- a non-space-like child after--> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mtext>abcdef</mtext> + <mrow><mo>¯</mo><mi>g</mi></mrow> + </mover> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-5-1.html b/layout/reftests/mathml/embellished-op-5-1.html new file mode 100644 index 000000000..1a494b83c --- /dev/null +++ b/layout/reftests/mathml/embellished-op-5-1.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 5: vertical stretchy operator</title> + </head> + + <body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mrow> + <msub> + <mo>|</mo> + <mspace/> + </msub> + </mrow> + <mspace height="30px" depth="30px"/> + </mrow> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-5-2.html b/layout/reftests/mathml/embellished-op-5-2.html new file mode 100644 index 000000000..2fbd96c39 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-5-2.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 5: vertical stretchy operator</title> + </head> + + <body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <msub> + <mo>|</mo> + <mspace/> + </msub> + <mspace height="30px" depth="30px"/> + </mrow> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/embellished-op-5-ref.html b/layout/reftests/mathml/embellished-op-5-ref.html new file mode 100644 index 000000000..7ba40a4e7 --- /dev/null +++ b/layout/reftests/mathml/embellished-op-5-ref.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>embellished operators 5: vertical stretchy operator</title> + </head> + + <body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mo>|</mo> + <mspace height="30px" depth="30px"/> + </mrow> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/font-inflation-1-ref.html b/layout/reftests/mathml/font-inflation-1-ref.html new file mode 100644 index 000000000..d6c6fa5e3 --- /dev/null +++ b/layout/reftests/mathml/font-inflation-1-ref.html @@ -0,0 +1,72 @@ +<!DOCTYPE html> +<html> + <head> + <title>Font Inflation</title> + <meta charset="utf-8"/> + <style> + @font-face { + font-family: "dtls-1"; + src: url(../fonts/math/dtls-1.otf); + } + p, math { + font-family: serif; + } + </style> + </head> + <body> + +<p>The text +'<math> + <mrow id="ref"> + <mtext style="font-family: dtls-1">𝔞</mtext> + <mtext>+</mtext> + </mrow> + </math>' +should have the same size as inline math +'<math> + <mrow id="inline"> + <mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext> + <mo>+</mo> + </mrow> + </math>, display math +<math display="block"> + <mrow id="display"> + <mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext> + <mo>+</mo> + </mrow> + </math>' +or math in a table: <math><mtable><mtr> + <mtd> + <mrow id="cell"> + <mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext> + <mo>+</mo> + </mrow> + </mtd> + </mtr></mtable></math> +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod +tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, +quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo +consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse +cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non +proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem +ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor +incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis +nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. +Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore +eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt +in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor +sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut +labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud +exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis +aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu +fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in +culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit +amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore +et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation +ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor +in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla +pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui +officia deserunt mollit anim id est laborum.</p> + + </body> +</html> diff --git a/layout/reftests/mathml/font-inflation-1.html b/layout/reftests/mathml/font-inflation-1.html new file mode 100644 index 000000000..9c4d1dfc2 --- /dev/null +++ b/layout/reftests/mathml/font-inflation-1.html @@ -0,0 +1,107 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Font Inflation</title> + <meta charset="utf-8"/> + <style> + @font-face { + font-family: "dtls-1"; + src: url(../fonts/math/dtls-1.otf); + } + p, math { + font-family: serif; + } + </style> + <script type="text/javascript"> + function almostEqual(aX, aY) { + var epsilon = 2; + return Math.abs(aX - aY) < epsilon; + } + + function verifySize(aElement, aReference) { + /* Verify if the size of the element matches the reference, and + otherwise paint the element in red. */ + if (!almostEqual(aElement.getBoundingClientRect().height, + aReference.getBoundingClientRect().height) || + !almostEqual(aElement.getBoundingClientRect().width, + aReference.getBoundingClientRect().width)) { + aElement.setAttribute("mathcolor", "red"); + } + } + + function verifySizes() { + /* Compare the size of the elements in the inline and display equations + against the reference mtext elements. */ + var ref = document.getElementById("ref"); + var inline = document.getElementById("inline"); + var display = document.getElementById("display"); + var cell = document.getElementById("cell"); + for (var i = 0; i < ref.children.length; i++) { + verifySize(inline.children[i], ref.children[i]); + verifySize(display.children[i], ref.children[i]); + verifySize(cell.children[i], ref.children[i]); + } + + document.documentElement.removeAttribute("class"); + } + + window.addEventListener("MozReftestInvalidate", verifySizes, false); + </script> + </head> + <body> + +<p>The text +'<math> + <mrow id="ref"> + <mtext style="font-family: dtls-1">𝔞</mtext> + <mtext>+</mtext> + </mrow> + </math>' +should have the same size as inline math +'<math> + <mrow id="inline"> + <mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext> + <mo>+</mo> + </mrow> + </math>, display math +<math display="block"> + <mrow id="display"> + <mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext> + <mo>+</mo> + </mrow> + </math>' +or math in a table: <math><mtable><mtr> + <mtd> + <mrow id="cell"> + <mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext> + <mo>+</mo> + </mrow> + </mtd> + </mtr></mtable></math> +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod +tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, +quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo +consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse +cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non +proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem +ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor +incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis +nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. +Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore +eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt +in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor +sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut +labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud +exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis +aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu +fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in +culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit +amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore +et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation +ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor +in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla +pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui +officia deserunt mollit anim id est laborum.</p> + + </body> +</html> diff --git a/layout/reftests/mathml/largeop-1-ref.html b/layout/reftests/mathml/largeop-1-ref.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/layout/reftests/mathml/largeop-1-ref.html diff --git a/layout/reftests/mathml/largeop-1.html b/layout/reftests/mathml/largeop-1.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/layout/reftests/mathml/largeop-1.html diff --git a/layout/reftests/mathml/link-1.xhtml b/layout/reftests/mathml/link-1.xhtml new file mode 100644 index 000000000..13ab70189 --- /dev/null +++ b/layout/reftests/mathml/link-1.xhtml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Test XLink</title> +</head> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML" + xmlns:xlink="http://www.w3.org/1999/xlink"> + <mtext xlink:type="simple" xlink:href="www.mozilla.org">MathML Link</mtext> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/link-ref.xhtml b/layout/reftests/mathml/link-ref.xhtml new file mode 100644 index 000000000..a5ac817f1 --- /dev/null +++ b/layout/reftests/mathml/link-ref.xhtml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Test link</title> +</head> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mtext>MathML Link</mtext> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/maction-dynamic-1-ref.html b/layout/reftests/mathml/maction-dynamic-1-ref.html new file mode 100644 index 000000000..d4e9c91d7 --- /dev/null +++ b/layout/reftests/mathml/maction-dynamic-1-ref.html @@ -0,0 +1,58 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>dynamic maction 1</title> +</head> + +<body> + +<p> +<math> + <mtext>__2__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__1__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__1__</mtext> +</math> +</p> + +<p> +<math> + <mn>1</mn> +</math> +</p> + +<p> +<math> + <mtext>__2__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__3__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__3__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__3__</mtext> +</math> +</p> + +</body> +</html> diff --git a/layout/reftests/mathml/maction-dynamic-1.html b/layout/reftests/mathml/maction-dynamic-1.html new file mode 100644 index 000000000..c790eb772 --- /dev/null +++ b/layout/reftests/mathml/maction-dynamic-1.html @@ -0,0 +1,107 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> +<head> +<title>dynamic maction 1</title> +</head> + +<body> + +<p> +<math> + <maction id="m1" actiontype="toggle"> + <mtext>__1__</mtext> + <mtext>__2__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m2" actiontype="toggle" selection="2"> + <mtext>__1__</mtext> + <mtext>__2__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m3" actiontype="toggle" selection="2"> + <mtext>__1__</mtext> + <mtext>__2__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m4" actiontype="toggle"> + <mn>1</mn> + <mn>2</mn> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m5" actiontype="toggle"> + <mtext id="m51">__1__</mtext> + <mtext id="m52">__2__</mtext> + <mtext id="m53">__3__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m6" actiontype="toggle" selection="3"> + <mtext>__1__</mtext> + <mtext>__2__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m7" actiontype="toggle"> + <mtext id="m71">__1__</mtext> + <mtext id="m72">__2__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m8" actiontype="toggle"> + <mtext id="m81">__1__</mtext> + <mtext id="m82">__2__</mtext> + </maction> +</math> +</p> + +<script> +function doTest() { + document.getElementById("m1").setAttribute("selection", "2"); + document.getElementById("m2").removeAttribute("selection"); + document.getElementById("m3").setAttribute("actiontype", "statusline"); + document.getElementById("m4").setAttribute("actiontype", "statusline"); + + var child51 = document.getElementById("m51"); + document.getElementById("m5").removeChild(child51); + + var child53 = document.getElementById("m53"); + document.getElementById("m6").appendChild(child53.cloneNode(true)); + + var child71 = document.getElementById("m71"); + document.getElementById("m7").insertBefore(child53.cloneNode(true), child71); + + var child81 = document.getElementById("m81"); + document.getElementById("m8").replaceChild(child53.cloneNode(true), child81); + + document.documentElement.removeAttribute('class'); +} +window.addEventListener("MozReftestInvalidate", doTest, false); +</script> + +</body> +</html> diff --git a/layout/reftests/mathml/maction-dynamic-2-ref.html b/layout/reftests/mathml/maction-dynamic-2-ref.html new file mode 100644 index 000000000..da9e8681a --- /dev/null +++ b/layout/reftests/mathml/maction-dynamic-2-ref.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>dynamic maction 2</title> +</head> + +<body> + +<p> +<math> + <mtext>__1__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__1__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__2__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__2__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__1__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__3__</mtext> +</math> +</p> + +<p> +<math> + <mtext>__3__</mtext> +</math> +</p> + +</body> +</html> diff --git a/layout/reftests/mathml/maction-dynamic-2.html b/layout/reftests/mathml/maction-dynamic-2.html new file mode 100644 index 000000000..569ef868e --- /dev/null +++ b/layout/reftests/mathml/maction-dynamic-2.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> +<head> +<title>dynamic maction 2</title> +</head> + +<body> + +<p> +<math> + <maction id="m1" actiontype="statusline"> + <mtext>__1__</mtext> + <mtext>__2__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m2" actiontype="statusline" selection="2"> + <mtext>__1__</mtext> + <mtext>__2__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m3" actiontype="statusline" selection="2"> + <mtext>__1__</mtext> + <mtext>__2__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m4" actiontype="statusline"> + <mtext id="m41">__1__</mtext> + <mtext id="m42">__2__</mtext> + <mtext id="m43">__3__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m5" actiontype="statusline"> + <mtext>__1__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m6" actiontype="statusline"> + <mtext id="m61">__1__</mtext> + <mtext id="m62">__2__</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m7" actiontype="statusline"> + <mtext id="m71">__1__</mtext> + <mtext id="m72">__2__</mtext> + </maction> +</math> +</p> + +<script> +function doTest() { + document.getElementById("m1").setAttribute("selection", "2"); + document.getElementById("m2").removeAttribute("selection"); + document.getElementById("m3").setAttribute("actiontype", "toggle"); + + var child41 = document.getElementById("m41"); + document.getElementById("m4").removeChild(child41); + + var child43 = document.getElementById("m43"); + document.getElementById("m5").appendChild(child43.cloneNode(true)); + + var child61 = document.getElementById("m61"); + document.getElementById("m6").insertBefore(child43.cloneNode(true), child61); + + var child71 = document.getElementById("m71"); + document.getElementById("m7").replaceChild(child43.cloneNode(true), child71); + + document.documentElement.removeAttribute('class'); +} +window.addEventListener("MozReftestInvalidate", doTest, false); +</script> + +</body> +</html> diff --git a/layout/reftests/mathml/maction-dynamic-3-ref.html b/layout/reftests/mathml/maction-dynamic-3-ref.html new file mode 100644 index 000000000..9a8f94033 --- /dev/null +++ b/layout/reftests/mathml/maction-dynamic-3-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>dynamic maction 3</title> +</head> + +<body> + +<!-- This element generates an invalid markup error. --> +<!-- We are assuming here that all invalid MathML markups look the same. --> +<p><math><msup><mi>x</mi></msup></math></p> + +<p><math><mtext>--1--</mtext></math></p> + +<p><math><mtext>--1--</mtext></math></p> + +<p><math><msup><mi>x</mi></msup></math></p> + +<p><math><msup><mi>x</mi></msup></math></p> + +<p><math><mtext>--1--</mtext></math></p> + +<p><math><mtext>--1--</mtext></math></p> + +<p><math><mtext>--1--</mtext></math></p> + +<p><math><mtext>--1--</mtext></math></p> + +<p><math><mtext>--1--</mtext></math></p> + +<p><math><mtext>--1--</mtext></math></p> + +<p><math><msup><mi>x</mi></msup></math></p> + +</body> +</html> diff --git a/layout/reftests/mathml/maction-dynamic-3.html b/layout/reftests/mathml/maction-dynamic-3.html new file mode 100644 index 000000000..4155941df --- /dev/null +++ b/layout/reftests/mathml/maction-dynamic-3.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> +<head> +<title>dynamic maction 3</title> +</head> + +<body> + +<p> +<math> + <maction id="m1" actiontype="toggle"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m2" actiontype="toggle" selection="5"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m3" actiontype="toggle" selection="5"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m4" actiontype="toggle"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m5" actiontype="toggle" selection="5"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m6" actiontype="toggle"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m7"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m8" actiontype="unknown-action-type"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m9" selection="5"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m10" actiontype="unknown-action-type" selection="5"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m11" actiontype="statusline"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<p> +<math> + <maction id="m12" actiontype="statusline" selection="5"> + <mtext>--1--</mtext> + <mtext>--2--</mtext> + </maction> +</math> +</p> + +<script> + function doTest() { + document.getElementById("m1").setAttribute("selection", "5"); + document.getElementById("m2").setAttribute("selection", "1"); + document.getElementById("m3").setAttribute("actiontype", "statusline"); + document.getElementById("m4").removeAttribute("actiontype"); + document.getElementById("m5").setAttribute("actiontype", "unknown-action-type"); + document.getElementById("m6").setAttribute("actiontype", "unknown-action-type"); + document.getElementById("m7").setAttribute("actiontype", "toggle"); + document.getElementById("m8").setAttribute("actiontype", "toggle"); + document.getElementById("m9").setAttribute("actiontype", "statusline"); + document.getElementById("m10").setAttribute("actiontype", "statusline"); + document.getElementById("m11").setAttribute("selection", "5"); + document.getElementById("m12").setAttribute("actiontype", "toggle"); + + document.documentElement.removeAttribute('class'); + } + window.addEventListener("MozReftestInvalidate", doTest, false); +</script> + +</body> +</html> diff --git a/layout/reftests/mathml/maction-dynamic-embellished-op-ref.html b/layout/reftests/mathml/maction-dynamic-embellished-op-ref.html new file mode 100644 index 000000000..500ea90e1 --- /dev/null +++ b/layout/reftests/mathml/maction-dynamic-embellished-op-ref.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html> + +<head> +<title>dynamic maction and embellished op</title> +</head> + +<body> + + <p>'<math><maction id="m1" selection="2"><mi>a</mi><mo>b</mo></maction></math>'</p> + <p>'<math><maction id="m2" selection="2"><mo>b</mo><mi>a</mi></maction></math>'</p> + + <p>"<math><maction id="m3"><mo>b</mo></maction></math>"</p> + <p>"<math><maction id="m3bis"><mi>a</mi><mo>b</mo></maction></math>"</p> + + <p>{<math><maction id="m4"><mi>a</mi></maction></math>}</p> + <p>{<math><maction id="m4bis"><mo>b</mo><mi>a</mi></maction></math>}</p> + + + <p>[<math> + <mstyle id="m5" selection="2"><maction><mi>a</mi><mo>b</mo></maction></mstyle> + </math>]</p> + <p>[<math> + <mstyle id="m6" selection="2"><maction><mo>b</mo><mi>a</mi></maction></mstyle> + </math>]</p> + + <p>(<math id="m7" selection="2"><maction><mi>a</mi><mo>b</mo></maction></math>)</p> + <p>(<math id="m8" selection="2"><maction><mo>b</mo><mi>a</mi></maction></math>)</p> + +</body> +</html> diff --git a/layout/reftests/mathml/maction-dynamic-embellished-op.html b/layout/reftests/mathml/maction-dynamic-embellished-op.html new file mode 100644 index 000000000..4ebf29ed1 --- /dev/null +++ b/layout/reftests/mathml/maction-dynamic-embellished-op.html @@ -0,0 +1,57 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + +<head> +<title>dynamic maction and embellished op</title> +</head> + +<body> + + <p>'<math><maction id="m1"><mi>a</mi><mo>b</mo></maction></math>'</p> + <p>'<math><maction id="m2"><mo>b</mo><mi>a</mi></maction></math>'</p> + + <p>"<math><maction id="m3"><mi>a</mi><mo>b</mo></maction></math>"</p> + <p>"<math><maction id="m3bis"><mo>b</mo></maction></math>"</p> + + <p>{<math><maction id="m4"><mo>b</mo><mi>a</mi></maction></math>}</p> + <p>{<math><maction id="m4bis"><mi>a</mi></maction></math>}</p> + + + <p>[<math> + <mstyle id="m5"><maction><mi>a</mi><mo>b</mo></maction></mstyle> + </math>]</p> + <p>[<math> + <mstyle id="m6"><maction><mo>b</mo><mi>a</mi></maction></mstyle> + </math>]</p> + + <p>(<math id="m7"><maction><mi>a</mi><mo>b</mo></maction></math>)</p> + <p>(<math id="m8"><maction><mo>b</mo><mi>a</mi></maction></math>)</p> + +<script> +function doTest() +{ + document.getElementById("m1").setAttribute("selection", "2"); + document.getElementById("m2").setAttribute("selection", "2"); + + var m3 = document.getElementById("m3"); + var m3bis = document.getElementById("m3bis"); + m3bis.insertBefore(m3.removeChild(m3.firstChild), m3bis.firstChild); + + var m4 = document.getElementById("m4"); + var m4bis = document.getElementById("m4bis"); + m4bis.insertBefore(m4.removeChild(m4.firstChild), m4bis.firstChild); + + document.getElementById("m5").setAttribute("selection", "2"); + document.getElementById("m6").setAttribute("selection", "2"); + + document.getElementById("m7").setAttribute("selection", "2"); + document.getElementById("m8").setAttribute("selection", "2"); + + document.documentElement.removeAttribute("class"); +} + +window.addEventListener("MozReftestInvalidate", doTest, false); +</script> + +</body> +</html> diff --git a/layout/reftests/mathml/maction-selection-ref.html b/layout/reftests/mathml/maction-selection-ref.html new file mode 100644 index 000000000..9c5e6b860 --- /dev/null +++ b/layout/reftests/mathml/maction-selection-ref.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>maction selection</title>
+</head>
+
+<body>
+
+<p>Statusline:
+<math>
+ <msqrt><mi>x</mi></msqrt>
+</math>
+</p>
+
+<p>Tooltip:
+<math>
+ <msqrt><mi>x</mi></msqrt>
+</math>
+</p>
+
+<p>Toggle:
+<math>
+ <mfrac>
+ <mn>6</mn>
+ <mn>8</mn>
+ </mfrac>
+</math>
+</p>
+
+<p>Toggle 2:
+<math>
+ <maction actiontype="toggle" selection="1">
+
+ <mfrac>
+ <mn>6</mn>
+ <mn>8</mn>
+ </mfrac>
+
+ <mfrac>
+ <mn>3</mn>
+ <mn>4</mn>
+ </mfrac>
+
+ </maction>
+</math>
+</p>
+
+</body>
+</html>
diff --git a/layout/reftests/mathml/maction-selection.html b/layout/reftests/mathml/maction-selection.html new file mode 100644 index 000000000..ce08748b7 --- /dev/null +++ b/layout/reftests/mathml/maction-selection.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>maction selection</title>
+</head>
+
+<body>
+
+<p>Statusline:
+<math>
+ <maction actiontype="statusline" selection="2">
+ <msqrt><mi>x</mi></msqrt>
+ <mtext>square root of x</mtext>
+ </maction>
+</math>
+</p>
+
+<p>Tooltip:
+<math>
+ <maction actiontype="tooltip" selection="2">
+ <msqrt><mi>x</mi></msqrt>
+ <mtext>square root of x</mtext>
+ </maction>
+</math>
+</p>
+
+<p>Toggle:
+<math>
+ <maction actiontype="toggle" selection="2">
+
+ <mfrac>
+ <mn>3</mn>
+ <mn>4</mn>
+ </mfrac>
+
+ <mfrac>
+ <mn>6</mn>
+ <mn>8</mn>
+ </mfrac>
+
+ </maction>
+</math>
+</p>
+
+<p>Toggle 2:
+<math>
+ <maction actiontype="toggle" selection="2">
+
+ <mfrac>
+ <mn>3</mn>
+ <mn>4</mn>
+ </mfrac>
+
+ <mfrac>
+ <mn>6</mn>
+ <mn>8</mn>
+ </mfrac>
+
+ </maction>
+</math>
+</p>
+
+</body>
+</html>
diff --git a/layout/reftests/mathml/math-display-ref.html b/layout/reftests/mathml/math-display-ref.html new file mode 100644 index 000000000..2383b0172 --- /dev/null +++ b/layout/reftests/mathml/math-display-ref.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> + <body> + <math> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </math> + <math displaystyle="true"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </math> + <math display="inline" displaystyle="true"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </math> + <math display="block" displaystyle="true"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </math> + <math displaystyle="false"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </math> + <math display="inline" displaystyle="false"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </math> + <math display="block" displaystyle="false"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/math-display.html b/layout/reftests/mathml/math-display.html new file mode 100644 index 000000000..8dfca1820 --- /dev/null +++ b/layout/reftests/mathml/math-display.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html> + <body> + <math> + <mstyle displaystyle="false"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </mstyle> + </math> + <math> + <mstyle displaystyle="true"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </mstyle> + </math> + <math display="inline"> + <mstyle displaystyle="true"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </mstyle> + </math> + <math display="block"> + <mstyle displaystyle="true"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </mstyle> + </math> + <math> + <mstyle displaystyle="false"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </mstyle> + </math> + <math display="inline"> + <mstyle displaystyle="false"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </mstyle> + </math> + <math display="block"> + <mstyle displaystyle="false"> + <munderover> + <mo>∑</mo> + <mi>b</mi> + <mi>c</mi> + </munderover> + </mstyle> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mathbackground-1-ref.xml b/layout/reftests/mathml/mathbackground-1-ref.xml new file mode 100644 index 000000000..a56bab47f --- /dev/null +++ b/layout/reftests/mathml/mathbackground-1-ref.xml @@ -0,0 +1,7 @@ +<!-- test mathbackground on a presentation element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow mathbackground="green"> + <mtext>□■□■□■□</mtext> + </mrow> +</math> + diff --git a/layout/reftests/mathml/mathbackground-1.xml b/layout/reftests/mathml/mathbackground-1.xml new file mode 100644 index 000000000..f6439a040 --- /dev/null +++ b/layout/reftests/mathml/mathbackground-1.xml @@ -0,0 +1,7 @@ +<!-- test mathbackground on a presentation element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow mathbackground="red"> + <mtext>□■□■□■□</mtext> + </mrow> +</math> + diff --git a/layout/reftests/mathml/mathbackground-2-ref.xml b/layout/reftests/mathml/mathbackground-2-ref.xml new file mode 100644 index 000000000..7dd51a7c1 --- /dev/null +++ b/layout/reftests/mathml/mathbackground-2-ref.xml @@ -0,0 +1,7 @@ +<!-- test mathbackground on mstyle --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle mathbackground="green"> + <mtext>□■□■□■□</mtext> + </mstyle> +</math> + diff --git a/layout/reftests/mathml/mathbackground-2.xml b/layout/reftests/mathml/mathbackground-2.xml new file mode 100644 index 000000000..ce779a27f --- /dev/null +++ b/layout/reftests/mathml/mathbackground-2.xml @@ -0,0 +1,7 @@ +<!-- test mathbackground on mstyle --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle mathbackground="red"> + <mtext>□■□■□■□</mtext> + </mstyle> +</math> + diff --git a/layout/reftests/mathml/mathbackground-3-ref.xml b/layout/reftests/mathml/mathbackground-3-ref.xml new file mode 100644 index 000000000..ac09a5353 --- /dev/null +++ b/layout/reftests/mathml/mathbackground-3-ref.xml @@ -0,0 +1,5 @@ +<!-- test mathbackground on a token element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mtext mathbackground="green">□■□■□■□</mtext> +</math> + diff --git a/layout/reftests/mathml/mathbackground-3.xml b/layout/reftests/mathml/mathbackground-3.xml new file mode 100644 index 000000000..4c96d92f7 --- /dev/null +++ b/layout/reftests/mathml/mathbackground-3.xml @@ -0,0 +1,5 @@ +<!-- test mathbackground on a token element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mtext mathbackground="red">□■□■□■□</mtext> +</math> + diff --git a/layout/reftests/mathml/mathbackground-4-ref.xml b/layout/reftests/mathml/mathbackground-4-ref.xml new file mode 100644 index 000000000..cdfa983a7 --- /dev/null +++ b/layout/reftests/mathml/mathbackground-4-ref.xml @@ -0,0 +1,7 @@ +<!-- test mathbackground on a non-presentation element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics mathbackground="red"> + <mtext>□■□■□■□</mtext> + </semantics> +</math> + diff --git a/layout/reftests/mathml/mathbackground-4.xml b/layout/reftests/mathml/mathbackground-4.xml new file mode 100644 index 000000000..3021886c2 --- /dev/null +++ b/layout/reftests/mathml/mathbackground-4.xml @@ -0,0 +1,7 @@ +<!-- test mathbackground on a non-presentation element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics mathbackground="green"> + <mtext>□■□■□■□</mtext> + </semantics> +</math> + diff --git a/layout/reftests/mathml/mathcolor-1-ref.xml b/layout/reftests/mathml/mathcolor-1-ref.xml new file mode 100644 index 000000000..370e93c7f --- /dev/null +++ b/layout/reftests/mathml/mathcolor-1-ref.xml @@ -0,0 +1,7 @@ +<!-- test mathcolor on a presentation element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow mathcolor="green"> + <mtext>□■□■□■□</mtext> + </mrow> +</math> + diff --git a/layout/reftests/mathml/mathcolor-1.xml b/layout/reftests/mathml/mathcolor-1.xml new file mode 100644 index 000000000..c99ae19db --- /dev/null +++ b/layout/reftests/mathml/mathcolor-1.xml @@ -0,0 +1,7 @@ +<!-- test mathcolor on a presentation element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow mathcolor="red"> + <mtext>□■□■□■□</mtext> + </mrow> +</math> + diff --git a/layout/reftests/mathml/mathcolor-2-ref.xml b/layout/reftests/mathml/mathcolor-2-ref.xml new file mode 100644 index 000000000..28e12c5bc --- /dev/null +++ b/layout/reftests/mathml/mathcolor-2-ref.xml @@ -0,0 +1,7 @@ +<!-- test mathcolor on mstyle --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle mathcolor="green"> + <mtext>□■□■□■□</mtext> + </mstyle> +</math> + diff --git a/layout/reftests/mathml/mathcolor-2.xml b/layout/reftests/mathml/mathcolor-2.xml new file mode 100644 index 000000000..d384a2dcd --- /dev/null +++ b/layout/reftests/mathml/mathcolor-2.xml @@ -0,0 +1,7 @@ +<!-- test mathcolor on mstyle --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle mathcolor="red"> + <mtext>□■□■□■□</mtext> + </mstyle> +</math> + diff --git a/layout/reftests/mathml/mathcolor-3-ref.xml b/layout/reftests/mathml/mathcolor-3-ref.xml new file mode 100644 index 000000000..e1cd1397e --- /dev/null +++ b/layout/reftests/mathml/mathcolor-3-ref.xml @@ -0,0 +1,5 @@ +<!-- test mathcolor on a token element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mtext mathcolor="green">□■□■□■□</mtext> +</math> + diff --git a/layout/reftests/mathml/mathcolor-3.xml b/layout/reftests/mathml/mathcolor-3.xml new file mode 100644 index 000000000..223d4f55f --- /dev/null +++ b/layout/reftests/mathml/mathcolor-3.xml @@ -0,0 +1,5 @@ +<!-- test mathcolor on a token element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mtext mathcolor="red">□■□■□■□</mtext> +</math> + diff --git a/layout/reftests/mathml/mathcolor-4-ref.xml b/layout/reftests/mathml/mathcolor-4-ref.xml new file mode 100644 index 000000000..ec1c08696 --- /dev/null +++ b/layout/reftests/mathml/mathcolor-4-ref.xml @@ -0,0 +1,7 @@ +<!-- test mathcolor on a non-presentation element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics mathcolor="red"> + <mtext>□■□■□■□</mtext> + </semantics> +</math> + diff --git a/layout/reftests/mathml/mathcolor-4.xml b/layout/reftests/mathml/mathcolor-4.xml new file mode 100644 index 000000000..7f98c829e --- /dev/null +++ b/layout/reftests/mathml/mathcolor-4.xml @@ -0,0 +1,7 @@ +<!-- test mathcolor on a non-presentation element --> +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics mathcolor="green"> + <mtext>□■□■□■□</mtext> + </semantics> +</math> + diff --git a/layout/reftests/mathml/mathml-mmultiscript-base-ref.html b/layout/reftests/mathml/mathml-mmultiscript-base-ref.html new file mode 100644 index 000000000..45f43e9f9 --- /dev/null +++ b/layout/reftests/mathml/mathml-mmultiscript-base-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mmultiscript with only base</title> + </head> + + <body> + <math> + <mmultiscripts> + <mtext>base</mtext> + </mmultiscripts> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mathml-mmultiscript-base.html b/layout/reftests/mathml/mathml-mmultiscript-base.html new file mode 100644 index 000000000..f2832df47 --- /dev/null +++ b/layout/reftests/mathml/mathml-mmultiscript-base.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>mmultiscript with only base and none as placeholder</title> + </head> + + <body> + <math> + <mmultiscripts> + <mtext>base</mtext> + <none/> + <none/> + </mmultiscripts> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mathml-mmultiscript-mprescript-ref.html b/layout/reftests/mathml/mathml-mmultiscript-mprescript-ref.html new file mode 100644 index 000000000..b30e7fb97 --- /dev/null +++ b/layout/reftests/mathml/mathml-mmultiscript-mprescript-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>mmultiscript with mprescripts without none</title> + </head> + + <body> + <math> + <mmultiscripts> + <mtext>base</mtext> + <mprescripts/> + </mmultiscripts> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mathml-mmultiscript-mprescript.html b/layout/reftests/mathml/mathml-mmultiscript-mprescript.html new file mode 100644 index 000000000..5bc0b5a5a --- /dev/null +++ b/layout/reftests/mathml/mathml-mmultiscript-mprescript.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>mmultiscript with mprescripts with none as placeholders</title> + </head> + + <body> + <math> + <mmultiscripts> + <mtext>base</mtext> + <none/> + <none/> + <mprescripts/> + </mmultiscripts> + + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mathml-negativespace-ref.html b/layout/reftests/mathml/mathml-negativespace-ref.html new file mode 100644 index 000000000..b7727952e --- /dev/null +++ b/layout/reftests/mathml/mathml-negativespace-ref.html @@ -0,0 +1,55 @@ +<!DOCTYPE html> +<html> + <head></head> + <body> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="negativeveryverythinmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="negativeverythinmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="negativethinmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="negativemediummathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="negativethickmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="negativeverythickmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="negativeveryverythickmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/mathml-negativespace.html b/layout/reftests/mathml/mathml-negativespace.html new file mode 100644 index 000000000..7415f000c --- /dev/null +++ b/layout/reftests/mathml/mathml-negativespace.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> + <head></head> + <body> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="-0.0555555556em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="-0.111111111em"></mspace> <mi>y</mi> + </mrow> + </math> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="-0.166666667em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="-0.222222222em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="-0.277777778em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="-0.333333333em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="-0.388888889em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/mathml-type-supported-ref.xml b/layout/reftests/mathml/mathml-type-supported-ref.xml new file mode 100644 index 000000000..1a471a2c6 --- /dev/null +++ b/layout/reftests/mathml/mathml-type-supported-ref.xml @@ -0,0 +1,4 @@ +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mspace style="position: absolute; top: 0; left: 0; background: green;" + width="100px" height="100px" depth="0"/> +</math> diff --git a/layout/reftests/mathml/mathml-type-supported.xhtml b/layout/reftests/mathml/mathml-type-supported.xhtml new file mode 100644 index 000000000..3fec7f1ab --- /dev/null +++ b/layout/reftests/mathml/mathml-type-supported.xhtml @@ -0,0 +1,10 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Test mime type application/mathml+xml</title> +</head> +<body> + <object type="application/mathml+xml" data="mathml-type-supported-ref.xml" + style="position: absolute; top: 0; left: 0; background: red; + width: 100px; height: 100px;"/> +</body> +</html> diff --git a/layout/reftests/mathml/mathscript-1-ref.html b/layout/reftests/mathml/mathscript-1-ref.html new file mode 100644 index 000000000..76d95465b --- /dev/null +++ b/layout/reftests/mathml/mathscript-1-ref.html @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<head> + + <!-- This font only has glyphs defined for 'A', 'B', 'C' and 'D', and is + designed purely for testing ssty and OpenType 'math' script + functionality + The glyphs for 'A' and 'D' are identical, the difference between them is + that 'A' supports the ssty font feature. + 'A' with ssty = 1 maps to 'B' + 'A' with ssty = 2 maps to 'C' + The difference between this font and ssty.woff is that the font feature + is contained within the OpenType 'math' script. --> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "mathssty"; + src: url("mathssty.woff"); + } + </style> +</head> +<body> + + <!-- Demonstrate that it has no effect outside MathML --> + <div style="font-family: 'mathssty';">D</div> + <div style="font-family: 'mathssty';">D</div> + + <!-- Demonstrate that it works within MathML --> + <math> + <mstyle style="font-family: 'mathssty';"> + <mrow> + <mo>D</mo> + <mo>B</mo> + <mo>C</mo> + </mrow> + </mstyle> + </math> + <p> + <!-- verify it works for the other elements except mtext --> + <math> + <mstyle style="font-family: 'mathssty';"> + <mi mathvariant="normal">C</mi> + <mn>C</mn> + <mtext>D</mtext> + </mstyle> + </math> +</body> diff --git a/layout/reftests/mathml/mathscript-1.html b/layout/reftests/mathml/mathscript-1.html new file mode 100644 index 000000000..8ec15d218 --- /dev/null +++ b/layout/reftests/mathml/mathscript-1.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<head> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "mathssty"; + src: url("mathssty.woff"); + } + </style> +</head> +<body> + + <!-- Demonstrate that it has no effect outside MathML --> + <div style="font-family: 'mathssty'; + font-feature-settings: 'ssty' 1">A</div> + <div style="font-family: 'mathssty'; + font-feature-settings: 'ssty' 2">A</div> + + <!-- Demonstrate that it works within MathML --> + <math> + <mstyle style="font-family: 'mathssty';"> + <mrow> + <mo style="font-feature-settings: 'ssty' 0">A</mo> + <mo style="font-feature-settings: 'ssty' 1">A</mo> + <mo style="font-feature-settings: 'ssty' 2">A</mo> + </mrow> + </mstyle> + </math> + <p> + <!-- verify it works for the other elements except mtext --> + <math> + <mstyle style="font-family: 'mathssty'; font-feature-settings: 'ssty' 2"> + <mi mathvariant="normal">A</mi> + <mn>A</mn> + <mtext>A</mtext> + </mstyle> + </math> +</body> diff --git a/layout/reftests/mathml/mathscript-2-ref.html b/layout/reftests/mathml/mathscript-2-ref.html new file mode 100644 index 000000000..668129247 --- /dev/null +++ b/layout/reftests/mathml/mathscript-2-ref.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <title>Dynamic OpenType 'math' script tests</title> + <!-- See mathscript-1-ref.html for an explanation of this font --> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "mathssty"; + src: url("mathssty.woff"); + } + </style> + </head> + <body> + + <!-- Demonstrate that it has no effect outside MathML --> + <div style="font-family: 'mathssty';" >DD</div> + + <!-- Demonstrate that it works within MathML --> + <math> + <mstyle style="font-family: 'mathssty';"> + <mo>CC</mo> + </mstyle> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mathscript-2.html b/layout/reftests/mathml/mathscript-2.html new file mode 100644 index 000000000..4bcd462a6 --- /dev/null +++ b/layout/reftests/mathml/mathscript-2.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic OpenType 'math' script tests</title> + <!-- See mathscript-1-ref.html for an explanation of this font --> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "mathssty"; + src: url("mathssty.woff"); + } + </style> + </head> + <body> + + <!-- Demonstrate that it has no effect outside MathML --> + <div style="font-family: 'mathssty'; + font-feature-settings: 'ssty' " id="div0">A</div> + + <!-- Demonstrate that it works within MathML --> + <math> + <mstyle style="font-family: 'mathssty'; font-feature-settings: 'ssty' 2"> + <mo id="mo0">A</mo> + </mstyle> + </math> + + <script> + function doTest() + { + // Does nothing to non-MathML + document.getElementById("div0").appendChild(document.createTextNode("A")); + // Does something to MathML + document.getElementById("mo0").appendChild(document.createTextNode("A")); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + + </body> +</html> diff --git a/layout/reftests/mathml/mathssty.woff b/layout/reftests/mathml/mathssty.woff Binary files differnew file mode 100644 index 000000000..eb6a66775 --- /dev/null +++ b/layout/reftests/mathml/mathssty.woff diff --git a/layout/reftests/mathml/mathvariant-1a-ref.html b/layout/reftests/mathml/mathvariant-1a-ref.html new file mode 100644 index 000000000..b70be9312 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-1a-ref.html @@ -0,0 +1,233 @@ +<!DOCTYPE html> +<html> + + <head> + <title>Test mathvariant character mappings</title> + </head> + <body> + <math> + <mrow> + <mtext>ABCDEFGHIJKLMNOPQRSTUVWXYZ</mtext> + <mtext>abcdefghijklmnopqrstuvwxyz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝐀𝐁𝐂𝐃𝐄𝐅 + 𝐆𝐇𝐈𝐉𝐊𝐋 + 𝐌𝐍𝐎𝐏𝐐𝐑 + 𝐒𝐓𝐔𝐕𝐖𝐗 + 𝐘𝐙 + 𝐚𝐛𝐜𝐝𝐞𝐟 + 𝐠𝐡𝐢𝐣𝐤𝐥 + 𝐦𝐧𝐨𝐩𝐪𝐫 + 𝐬𝐭𝐮𝐯𝐰𝐱 + 𝐲𝐳 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝐴𝐵𝐶𝐷𝐸𝐹 + 𝐺𝐻𝐼𝐽𝐾𝐿 + 𝑀𝑁𝑂𝑃𝑄𝑅 + 𝑆𝑇𝑈𝑉𝑊𝑋 + 𝑌𝑍 + 𝑎𝑏𝑐𝑑𝑒𝑓 + 𝑔ℎ𝑖𝑗𝑘𝑙 + 𝑚𝑛𝑜𝑝𝑞𝑟 + 𝑠𝑡𝑢𝑣𝑤𝑥 + 𝑦𝑧 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝑨𝑩𝑪𝑫𝑬𝑭 + 𝑮𝑯𝑰𝑱𝑲𝑳 + 𝑴𝑵𝑶𝑷𝑸𝑹 + 𝑺𝑻𝑼𝑽𝑾𝑿 + 𝒀𝒁 + 𝒂𝒃𝒄𝒅𝒆𝒇 + 𝒈𝒉𝒊𝒋𝒌𝒍 + 𝒎𝒏𝒐𝒑𝒒𝒓 + 𝒔𝒕𝒖𝒗𝒘𝒙 + 𝒚𝒛 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝒜ℬ𝒞𝒟ℰℱ + 𝒢ℋℐ𝒥𝒦ℒ + ℳ𝒩𝒪𝒫𝒬ℛ + 𝒮𝒯𝒰𝒱𝒲𝒳 + 𝒴𝒵 + 𝒶𝒷𝒸𝒹ℯ𝒻 + ℊ𝒽𝒾𝒿𝓀𝓁 + 𝓂𝓃ℴ𝓅𝓆𝓇 + 𝓈𝓉𝓊𝓋𝓌𝓍 + 𝓎𝓏 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝓐𝓑𝓒𝓓𝓔𝓕 + 𝓖𝓗𝓘𝓙𝓚𝓛 + 𝓜𝓝𝓞𝓟𝓠𝓡 + 𝓢𝓣𝓤𝓥𝓦𝓧 + 𝓨𝓩 + 𝓪𝓫𝓬𝓭𝓮𝓯 + 𝓰𝓱𝓲𝓳𝓴𝓵 + 𝓶𝓷𝓸𝓹𝓺𝓻 + 𝓼𝓽𝓾𝓿𝔀𝔁 + 𝔂𝔃 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝔄𝔅ℭ𝔇𝔈𝔉 + 𝔊ℌℑ𝔍𝔎𝔏 + 𝔐𝔑𝔒𝔓𝔔ℜ + 𝔖𝔗𝔘𝔙𝔚𝔛 + 𝔜ℨ + 𝔞𝔟𝔠𝔡𝔢𝔣 + 𝔤𝔥𝔦𝔧𝔨𝔩 + 𝔪𝔫𝔬𝔭𝔮𝔯 + 𝔰𝔱𝔲𝔳𝔴𝔵 + 𝔶𝔷 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝔸𝔹ℂ𝔻𝔼𝔽 + 𝔾ℍ𝕀𝕁𝕂𝕃 + 𝕄ℕ𝕆ℙℚℝ + 𝕊𝕋𝕌𝕍𝕎𝕏 + 𝕐ℤ + 𝕒𝕓𝕔𝕕𝕖𝕗 + 𝕘𝕙𝕚𝕛𝕜𝕝 + 𝕞𝕟𝕠𝕡𝕢𝕣 + 𝕤𝕥𝕦𝕧𝕨𝕩 + 𝕪𝕫 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝕬𝕭𝕮𝕯𝕰𝕱 + 𝕲𝕳𝕴𝕵𝕶𝕷 + 𝕸𝕹𝕺𝕻𝕼𝕽 + 𝕾𝕿𝖀𝖁𝖂𝖃 + 𝖄𝖅 + 𝖆𝖇𝖈𝖉𝖊𝖋 + 𝖌𝖍𝖎𝖏𝖐𝖑 + 𝖒𝖓𝖔𝖕𝖖𝖗 + 𝖘𝖙𝖚𝖛𝖜𝖝 + 𝖞𝖟 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝖠𝖡𝖢𝖣𝖤𝖥 + 𝖦𝖧𝖨𝖩𝖪𝖫 + 𝖬𝖭𝖮𝖯𝖰𝖱 + 𝖲𝖳𝖴𝖵𝖶𝖷 + 𝖸𝖹 + 𝖺𝖻𝖼𝖽𝖾𝖿 + 𝗀𝗁𝗂𝗃𝗄𝗅 + 𝗆𝗇𝗈𝗉𝗊𝗋 + 𝗌𝗍𝗎𝗏𝗐𝗑 + 𝗒𝗓 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝗔𝗕𝗖𝗗𝗘𝗙 + 𝗚𝗛𝗜𝗝𝗞𝗟 + 𝗠𝗡𝗢𝗣𝗤𝗥 + 𝗦𝗧𝗨𝗩𝗪𝗫 + 𝗬𝗭 + 𝗮𝗯𝗰𝗱𝗲𝗳 + 𝗴𝗵𝗶𝗷𝗸𝗹 + 𝗺𝗻𝗼𝗽𝗾𝗿 + 𝘀𝘁𝘂𝘃𝘄𝘅 + 𝘆𝘇</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝘈𝘉𝘊𝘋𝘌𝘍 + 𝘎𝘏𝘐𝘑𝘒𝘓 + 𝘔𝘕𝘖𝘗𝘘𝘙 + 𝘚𝘛𝘜𝘝𝘞𝘟 + 𝘠𝘡 + 𝘢𝘣𝘤𝘥𝘦𝘧 + 𝘨𝘩𝘪𝘫𝘬𝘭 + 𝘮𝘯𝘰𝘱𝘲𝘳 + 𝘴𝘵𝘶𝘷𝘸𝘹 + 𝘺𝘻</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝘼𝘽𝘾𝘿𝙀𝙁 + 𝙂𝙃𝙄𝙅𝙆𝙇 + 𝙈𝙉𝙊𝙋𝙌𝙍 + 𝙎𝙏𝙐𝙑𝙒𝙓 + 𝙔𝙕 + 𝙖𝙗𝙘𝙙𝙚𝙛 + 𝙜𝙝𝙞𝙟𝙠𝙡 + 𝙢𝙣𝙤𝙥𝙦𝙧 + 𝙨𝙩𝙪𝙫𝙬𝙭 + 𝙮𝙯</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝙰𝙱𝙲𝙳𝙴𝙵 + 𝙶𝙷𝙸𝙹𝙺𝙻 + 𝙼𝙽𝙾𝙿𝚀𝚁 + 𝚂𝚃𝚄𝚅𝚆𝚇 + 𝚈𝚉 + 𝚊𝚋𝚌𝚍𝚎𝚏 + 𝚐𝚑𝚒𝚓𝚔𝚕 + 𝚖𝚗𝚘𝚙𝚚𝚛 + 𝚜𝚝𝚞𝚟𝚠𝚡 + 𝚢𝚣</mtext> + </mrow> + </math> + <br> + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-1a.html b/layout/reftests/mathml/mathvariant-1a.html new file mode 100644 index 000000000..50a3bb0e4 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-1a.html @@ -0,0 +1,224 @@ +<!DOCTYPE html> +<html> + + <head> + <title>Test mathvariant character mappings</title> + </head> + <body> + <math> + <mrow> + <mtext mathvariant="normal">ABCDEFGHIJKLMNOPQRSTUVWXYZ</mtext> + <mtext mathvariant="normal">abcdefghijklmnopqrstuvwxyz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="italic"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-italic"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="script"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-script"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="fraktur"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="double-struck"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-fraktur"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="sans-serif"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-sans-serif"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="sans-serif-italic"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="sans-serif-bold-italic"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="monospace"> + ABCDEF + GHIJKL + MNOPQR + STUVWX + YZ + abcdef + ghijkl + mnopqr + stuvwx + yz</mtext> + </mrow> + </math> + <br> + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-1b-ref.html b/layout/reftests/mathml/mathvariant-1b-ref.html new file mode 100644 index 000000000..6dd2f622a --- /dev/null +++ b/layout/reftests/mathml/mathvariant-1b-ref.html @@ -0,0 +1,126 @@ +<!DOCTYPE html> +<html> + + <head> + <title>Test mathvariant character mappings</title> + </head> + <body> + <math> + <mrow> + <mtext>0123456789</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝟎𝟏𝟐𝟑𝟒𝟓 + 𝟔𝟕𝟖𝟗 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext>0123456789</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext>0123456789</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝟘𝟙𝟚𝟛𝟜𝟝 + 𝟞𝟟𝟠𝟡 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝟢𝟣𝟤𝟥𝟦𝟧 + 𝟨𝟩𝟪𝟫 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝟬𝟭𝟮𝟯𝟰𝟱 + 𝟲𝟳𝟴𝟵 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝟶𝟷𝟸𝟹𝟺𝟻 + 𝟼𝟽𝟾𝟿 + </mtext> + </mrow> + </math> + <br> + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-1b.html b/layout/reftests/mathml/mathvariant-1b.html new file mode 100644 index 000000000..f5b4e338d --- /dev/null +++ b/layout/reftests/mathml/mathvariant-1b.html @@ -0,0 +1,126 @@ +<!DOCTYPE html> +<html> + + <head> + <title>Test mathvariant character mappings</title> + </head> + <body> + <math> + <mrow> + <mtext mathvariant="normal">0123456789</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="italic">0123456789</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-italic">0123456789</mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="script"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-script"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="fraktur"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="double-struck"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-fraktur"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="sans-serif"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-sans-serif"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="sans-serif-italic"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="sans-serif-bold-italic"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="monospace"> + 012345 + 6789 + </mtext> + </mrow> + </math> + <br> + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-1c-ref.html b/layout/reftests/mathml/mathvariant-1c-ref.html new file mode 100644 index 000000000..6a4f8cf1c --- /dev/null +++ b/layout/reftests/mathml/mathvariant-1c-ref.html @@ -0,0 +1,247 @@ +<!DOCTYPE html> +<html> + + <head> + <title>Test mathvariant character mappings</title> + </head> + <body> + <math> + <mrow> + <mtext> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝚨𝚩𝚪𝚫𝚬𝚭 + 𝚮𝚯𝚰𝚱𝚲𝚳 + 𝚴𝚵𝚶𝚷𝚸𝚹 + 𝚺𝚻𝚼𝚽𝚾𝚿 + 𝛀𝛁𝛂𝛃𝛄𝛅 + 𝛆𝛇𝛈𝛉𝛊𝛋 + 𝛌𝛍𝛎𝛏𝛐𝛑 + 𝛒𝛓𝛔𝛕𝛖𝛗 + 𝛘𝛙𝛚𝛛𝛜𝛝 + 𝛞𝛟𝛠𝛡 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝛢𝛣𝛤𝛥𝛦𝛧 + 𝛨𝛩𝛪𝛫𝛬𝛭 + 𝛮𝛯𝛰𝛱𝛲𝛳 + 𝛴𝛵𝛶𝛷𝛸𝛹 + 𝛺𝛻𝛼𝛽𝛾𝛿 + 𝜀𝜁𝜂𝜃𝜄𝜅 + 𝜆𝜇𝜈𝜉𝜊𝜋 + 𝜌𝜍𝜎𝜏𝜐𝜑 + 𝜒𝜓𝜔𝜕𝜖𝜗 + 𝜘𝜙𝜚𝜛 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝜜𝜝𝜞𝜟𝜠𝜡 + 𝜢𝜣𝜤𝜥𝜦𝜧 + 𝜨𝜩𝜪𝜫𝜬𝜭 + 𝜮𝜯𝜰𝜱𝜲𝜳 + 𝜴𝜵𝜶𝜷𝜸𝜹 + 𝜺𝜻𝜼𝜽𝜾𝜿 + 𝝀𝝁𝝂𝝃𝝄𝝅 + 𝝆𝝇𝝈𝝉𝝊𝝋 + 𝝌𝝍𝝎𝝏𝝐𝝑 + 𝝒𝝓𝝔𝝕 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝝖𝝗𝝘𝝙𝝚𝝛 + 𝝜𝝝𝝞𝝟𝝠𝝡 + 𝝢𝝣𝝤𝝥𝝦𝝧 + 𝝨𝝩𝝪𝝫𝝬𝝭 + 𝝮𝝯𝝰𝝱𝝲𝝳 + 𝝴𝝵𝝶𝝷𝝸𝝹 + 𝝺𝝻𝝼𝝽𝝾𝝿 + 𝞀𝞁𝞂𝞃𝞄𝞅 + 𝞆𝞇𝞈𝞉𝞊𝞋 + 𝞌𝞍𝞎𝞏 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𝞐𝞑𝞒𝞓𝞔𝞕 + 𝞖𝞗𝞘𝞙𝞚𝞛 + 𝞜𝞝𝞞𝞟𝞠𝞡 + 𝞢𝞣𝞤𝞥𝞦𝞧 + 𝞨𝞩𝞪𝞫𝞬𝞭 + 𝞮𝞯𝞰𝞱𝞲𝞳 + 𝞴𝞵𝞶𝞷𝞸𝞹 + 𝞺𝞻𝞼𝞽𝞾𝞿 + 𝟀𝟁𝟂𝟃𝟄𝟅 + 𝟆𝟇𝟈𝟉 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-1c.html b/layout/reftests/mathml/mathvariant-1c.html new file mode 100644 index 000000000..bbbafd3cd --- /dev/null +++ b/layout/reftests/mathml/mathvariant-1c.html @@ -0,0 +1,247 @@ +<!DOCTYPE html> +<html> + + <head> + <title>Test mathvariant character mappings</title> + </head> + <body> + <math> + <mrow> + <mtext mathvariant="normal"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="italic"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-italic"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="script"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-script"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="fraktur"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="double-struck"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-fraktur"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="sans-serif"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="bold-sans-serif"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="sans-serif-italic"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="sans-serif-bold-italic"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="monospace"> + ΑΒΓΔΕΖ + ΗΘΙΚΛΜ + ΝΞΟΠΡϴ + ΣΤΥΦΧΨ + Ω∇αβγδ + εζηθικ + λμνξοπ + ρςστυφ + χψω∂ϵϑ + ϰϕϱϖ + </mtext> + </mrow> + </math> + <br> + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-1d-ref.html b/layout/reftests/mathml/mathvariant-1d-ref.html new file mode 100644 index 000000000..2529bef08 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-1d-ref.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html> + + <head> + <title>Test mathvariant character mappings</title> + </head> + <body> + <math> + <mrow> + <mtext> + 𞺡𞺢𞺣𞺥𞺦𞺧 + 𞺨𞺩𞺫𞺬𞺭𞺮 + 𞺯𞺰𞺱𞺲𞺳𞺴 + 𞺵𞺶𞺷𞺸𞺹𞺺 + 𞺻 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𞸡𞸢𞸤𞸧𞸩𞸪 + 𞸫𞸬𞸭𞸮𞸯𞸰 + 𞸱𞸲𞸴𞸵𞸶𞸷 + 𞸹𞸻 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𞹂𞹇𞹉𞹋𞹍𞹎 + 𞹏𞹑𞹒𞹔𞹗𞹙 + 𞹛𞹝𞹟 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𞺀𞺁𞺂𞺃𞺄𞺅 + 𞺆𞺇𞺈𞺉𞺋𞺌 + 𞺍𞺎𞺏𞺐𞺑𞺒 + 𞺓𞺔𞺕𞺖𞺗𞺘 + 𞺙𞺚𞺛 + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext> + 𞹡𞹢𞹤𞹧𞹨𞹩 + 𞹪𞹬𞹭𞹮𞹯𞹰 + 𞹱𞹲𞹴𞹵𞹶𞹷 + 𞹹𞹺𞹻𞹼𞹾 + </mtext> + </mrow> + </math> + </body> +</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/mathvariant-1d.html b/layout/reftests/mathml/mathvariant-1d.html new file mode 100644 index 000000000..83dfa3bf8 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-1d.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html> + + <head> + <title>Test mathvariant character mappings</title> + </head> + <body> + <math> + <mrow> + <mtext mathvariant="double-struck"> + بجدوزح + طيلمنس + عفصقرش + تثخذضظ + غ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="initial"> + بجهحيك + لمنسعف + صقشتثخ + ضغ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="tailed"> + جحيلنس + عصقشخض + غںٯ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="looped"> + ابجدهو + زحطيلم + نسعفصق + رشتثخذ + ضظغ + </mtext> + </mrow> + </math> + <br> + <math> + <mrow> + <mtext mathvariant="stretched"> + بجهحطي + كمنسعف + صقشتثخ + ضظغٮڡ + </mtext> + </mrow> + </math> + </body> +</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/mathvariant-2-ref.html b/layout/reftests/mathml/mathvariant-2-ref.html new file mode 100644 index 000000000..6118ad058 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-2-ref.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mathvariant exception mappings</title> + </head> + <body> + <math> + <mrow> + <mtext>𝚤𝚥</mtext> + <mtext>ıȷ</mtext> + <mtext>𝟊𝟋</mtext> + <mtext>Ϝϝ</mtext> + </mrow> + </math> + <p> + <math> + <mrow> + <mi mathvariant="italic">ı</mi> + <mi mathvariant="italic">ȷ</mi> + <mi mathvariant="normal">ıı</mi> + <mi mathvariant="normal">ȷȷ</mi> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-2.html b/layout/reftests/mathml/mathvariant-2.html new file mode 100644 index 000000000..c73112285 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-2.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mathvariant exception mappings</title> + </head> + <body> + <math> + <mrow> + <mtext mathvariant="italic">ıȷ</mtext> + <mtext mathvariant="bold">ıȷ</mtext> + <mtext mathvariant="bold">Ϝϝ</mtext> + <mtext mathvariant="italic">Ϝϝ</mtext> + </mrow> + </math> + <p> + <math> + <mrow> + <mi>ı</mi> + <mi>ȷ</mi> + <mi>ıı</mi> + <mi>ȷȷ</mi> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-3-ref.html b/layout/reftests/mathml/mathvariant-3-ref.html new file mode 100644 index 000000000..8ac911c1d --- /dev/null +++ b/layout/reftests/mathml/mathvariant-3-ref.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test math-variant interaction with fontstyle and fontweight</title> + </head> + <body> + <math> + <mrow> + <mtext>A</mtext> + <mtext>A</mtext> + </mrow> + </math> + <p> + <math> + <mn>A</mn> + </math> + </p> + <p> + <math> + <mn fontweight="bold">A</mn> + </math> + </p> + <p> + <math> + <mn fontweight="bold" fontstyle="italic">A</mn> + </math> + </p> + <p> + <math> + <mn fontweight="bold" fontstyle="italic">A</mn> + </math> + </p> + <p> + <math> + <mn fontweight="bold" fontstyle="italic">A</mn> + </math> + </p> + <p> + <math> + <mn>A</mn> + </math> + </p> + </body> + </html> diff --git a/layout/reftests/mathml/mathvariant-3.html b/layout/reftests/mathml/mathvariant-3.html new file mode 100644 index 000000000..804bd7658 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-3.html @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test math-variant interaction with fontstyle and fontweight</title> + </head> + <body> + <math> + <mrow> + <mtext mathvariant="normal" fontweight="bold">A</mtext> + <mtext mathvariant="normal" fontstyle="italic">A</mtext> + </mrow> + </math> + <p> + <math> + <mi fontstyle="normal">A</mi> + </math> + </p> + <p> + <math> + <mi fontstyle="normal" fontweight="bold">A</mi> + </math> + </p> + <p> + <math> + <mi fontweight="bold">A</mi> + </math> + </p> + <p> + <math> + <mi fontweight="bold" fontstyle="italic">A</mi> + </math> + </p> + <p> + <math> + <mi fontweight="bold" style="font-style:normal">A</mi> + </math> + </p> + <p> + <math> + <mi fontstyle="normal" style="font-weight:bold">A</mi> + </math> + </p> + </body> + </html> + diff --git a/layout/reftests/mathml/mathvariant-4-ref.html b/layout/reftests/mathml/mathvariant-4-ref.html new file mode 100644 index 000000000..717eab9f2 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-4-ref.html @@ -0,0 +1,55 @@ +<!DOCTYPE html> +<html> + <head> + <title>More mathvariant tests</title> + </head> + <body> + <math> + <mrow> + <!-- mathvariant on characters that are already in the Mathematical + AlphanumericSymbols or are exceptions (should not have any + effect).--> + <mtext>𝒜</mtext> + <mtext>ℬ</mtext> + <!-- mathvariant on characters for which there is no equivalent mathvariant + form in Unicode (should not have any effect) --> + <mtext>á</mtext> + </mrow> + </math> + + <p> + + <math> + <mrow> + <!-- mathvariant on multi-char token elements (should apply to all the + characters) --> + <mtext>𝙰𝙰𝙰</mtext> + </mrow> + </math> + + <p> + + <math> + <mrow> + <!-- mathvariant on mstyle (should apply to all token element descendants + like single-char mi, mtext etc) --> + <mtext mathvariant="sans-serif">cos</mtext> + <mo>⁡</mo> + <mi mathvariant="sans-serif">x</mi> + </mrow> + </math> + + <p> + + <math> + <mrow> + <!-- mathvariant on math (should apply to all token element descendants + like single-char mi, mtext etc) --> + <mtext mathvariant="sans-serif">cos</mtext> + <mo>⁡</mo> + <mi mathvariant="sans-serif">x</mi> + </mrow> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-4.html b/layout/reftests/mathml/mathvariant-4.html new file mode 100644 index 000000000..f3982b2c2 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-4.html @@ -0,0 +1,46 @@ +<!DOCTYPE html> +<html> + <head> + <title>More mathvariant tests</title> + </head> + <body> + <math> + <mrow> + <mtext mathvariant="fraktur">𝒜</mtext> + <mtext mathvariant="fraktur">ℬ</mtext> + <mtext mathvariant="fraktur">á</mtext> + </mrow> + </math> + + <p> + + <math> + <mrow> + <mtext mathvariant="monospace">AAA</mtext> + </mrow> + </math> + + <p> + + <math> + <mstyle mathvariant="sans-serif"> + <mrow> + <mtext>cos</mtext> + <mo>⁡</mo> + <mi>x</mi> + </mrow> + </mstyle> + </math> + + <p> + + <math mathvariant="sans-serif"> + <mrow> + <mtext>cos</mtext> + <mo>⁡</mo> + <mi>x</mi> + </mrow> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-5-ref.html b/layout/reftests/mathml/mathvariant-5-ref.html new file mode 100644 index 000000000..252bea5e1 --- /dev/null +++ b/layout/reftests/mathml/mathvariant-5-ref.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html> + <head> + <title>Dynamic mathvariant tests</title> + </head> + <body> + <math> + <mrow> + <mi id="Mi0" mathvariant="script">A</mi> + <mi id="Mi1">BB</mi> + <mi id="Mi2">B</mi> + <mi id="Mi3">A</mi> + <mi id="Mi4" mathvariant="script">A</mi> + <mtext id="Mtext0" fontweight="bold">A</mtext> + <mtext id="Mtext1" fontstyle="italic">A</mtext> + <mtext id="Mtext2" mathvariant="script">A</mtext> + <mtext id="Mtext3" mathvariant="script">A</mtext> + <mtext id="Mtext4" mathvariant="script">A</mtext> + <mtext id="Mtext5" mathvariant="script">A</mtext> + </mrow> + </math> + + <p> + + <math> + <mrow> + <mstyle id="Mstyle0" mathvariant="fraktur"> + <mtext>Hello</mtext> + </mstyle> + <mstyle id="Mstyle1" mathvariant="monospace"> + <mtext>Hello</mtext> + </mstyle> + <mstyle id="Mstyle2"> + <mtext>Hello</mtext> + </mstyle> + </mrow> + </math> + + <p> + + <math id="Math0" mathvariant="fraktur"> + <mtext>Hello</mtext> + </math> + <math id="Math1" mathvariant="monospace"> + <mtext>Hello</mtext> + </math> + <math id="Math2"> + <mtext>Hello</mtext> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mathvariant-5.html b/layout/reftests/mathml/mathvariant-5.html new file mode 100644 index 000000000..d8e4554ba --- /dev/null +++ b/layout/reftests/mathml/mathvariant-5.html @@ -0,0 +1,76 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic mathvariant tests</title> + </head> + <body> + <math> + <mrow> + <mi id="Mi0">A</mi> + <mi id="Mi1">A</mi> + <mi id="Mi2">AA</mi> + <mi id="Mi3" mathvariant="fraktur">A</mi> + <mi id="Mi4" mathvariant="monospace">A</mi> + <mtext id="Mtext0" mathvariant="monospace" fontweight="bold">A</mtext> + <mtext id="Mtext1" mathvariant="monospace" fontstyle="italic">A</mtext> + <mtext id="Mtext2" mathvariant="monospace" fontweight="bold">A</mtext> + <mtext id="Mtext3" mathvariant="monospace" fontstyle="italic">A</mtext> + <mtext id="Mtext4" fontweight="bold">A</mtext> + <mtext id="Mtext5" fontstyle="italic">A</mtext> + </mrow> + </math> + + <p> + + <math> + <mrow> + <mstyle id="Mstyle0"> + <mtext>Hello</mtext> + </mstyle> + <mstyle id="Mstyle1" mathvariant="bold-fraktur"> + <mtext>Hello</mtext> + </mstyle> + <mstyle id="Mstyle2" mathvariant="bold"> + <mtext>Hello</mtext> + </mstyle> + </mrow> + </math> + + <p> + + <math id="Math0"> + <mtext>Hello</mtext> + </math> + <math id="Math1" mathvariant="fraktur"> + <mtext>Hello</mtext> + </math> + <math id="Math2" mathvariant="bold"> + <mtext>Hello</mtext> + </math> + <script> + function doTest() + { + document.getElementById("Mi0").setAttribute("mathvariant", "script"); + document.getElementById("Mi1").innerHTML = "BB"; + document.getElementById("Mi2").innerHTML = "B"; + document.getElementById("Mi3").removeAttribute("mathvariant"); + document.getElementById("Mi4").setAttribute("mathvariant", "script"); + document.getElementById("Mtext0").removeAttribute("mathvariant"); + document.getElementById("Mtext1").removeAttribute("mathvariant"); + document.getElementById("Mtext2").setAttribute("mathvariant", "script"); + document.getElementById("Mtext3").setAttribute("mathvariant", "script"); + document.getElementById("Mtext4").setAttribute("mathvariant", "script"); + document.getElementById("Mtext5").setAttribute("mathvariant", "script"); + document.getElementById("Mstyle0").setAttribute("mathvariant", "fraktur"); + document.getElementById("Mstyle1").setAttribute("mathvariant", "monospace"); + document.getElementById("Mstyle2").removeAttribute("mathvariant"); + document.getElementById("Math0").setAttribute("mathvariant", "fraktur"); + document.getElementById("Math1").setAttribute("mathvariant", "monospace"); + document.getElementById("Math2").removeAttribute("mathvariant"); + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1-ref.html b/layout/reftests/mathml/menclose-1-ref.html new file mode 100644 index 000000000..2302a2b8d --- /dev/null +++ b/layout/reftests/mathml/menclose-1-ref.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation=""> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1a.html b/layout/reftests/mathml/menclose-1a.html new file mode 100644 index 000000000..649ea0ea2 --- /dev/null +++ b/layout/reftests/mathml/menclose-1a.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="longdiv"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1b.html b/layout/reftests/mathml/menclose-1b.html new file mode 100644 index 000000000..d46e43d42 --- /dev/null +++ b/layout/reftests/mathml/menclose-1b.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="actuarial"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1c.html b/layout/reftests/mathml/menclose-1c.html new file mode 100644 index 000000000..cca82fb38 --- /dev/null +++ b/layout/reftests/mathml/menclose-1c.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="radical"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1d.html b/layout/reftests/mathml/menclose-1d.html new file mode 100644 index 000000000..6c98cdb96 --- /dev/null +++ b/layout/reftests/mathml/menclose-1d.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="box"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1e.html b/layout/reftests/mathml/menclose-1e.html new file mode 100644 index 000000000..6c1d4bc2d --- /dev/null +++ b/layout/reftests/mathml/menclose-1e.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="roundedbox"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1f.html b/layout/reftests/mathml/menclose-1f.html new file mode 100644 index 000000000..f4409e20b --- /dev/null +++ b/layout/reftests/mathml/menclose-1f.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="circle"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1g.html b/layout/reftests/mathml/menclose-1g.html new file mode 100644 index 000000000..97a88eba2 --- /dev/null +++ b/layout/reftests/mathml/menclose-1g.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="left"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1h.html b/layout/reftests/mathml/menclose-1h.html new file mode 100644 index 000000000..fa17c0789 --- /dev/null +++ b/layout/reftests/mathml/menclose-1h.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="right"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1i.html b/layout/reftests/mathml/menclose-1i.html new file mode 100644 index 000000000..062ef17f5 --- /dev/null +++ b/layout/reftests/mathml/menclose-1i.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="top"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1j.html b/layout/reftests/mathml/menclose-1j.html new file mode 100644 index 000000000..175f65aa3 --- /dev/null +++ b/layout/reftests/mathml/menclose-1j.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="bottom"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1k.html b/layout/reftests/mathml/menclose-1k.html new file mode 100644 index 000000000..03f9d15fc --- /dev/null +++ b/layout/reftests/mathml/menclose-1k.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="updiagonalstrike"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1l.html b/layout/reftests/mathml/menclose-1l.html new file mode 100644 index 000000000..dce96364d --- /dev/null +++ b/layout/reftests/mathml/menclose-1l.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="downdiagonalstrike"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1m.html b/layout/reftests/mathml/menclose-1m.html new file mode 100644 index 000000000..4acdaf914 --- /dev/null +++ b/layout/reftests/mathml/menclose-1m.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="verticalstrike"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1n.html b/layout/reftests/mathml/menclose-1n.html new file mode 100644 index 000000000..3557fc348 --- /dev/null +++ b/layout/reftests/mathml/menclose-1n.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="horizontalstrike"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1o.html b/layout/reftests/mathml/menclose-1o.html new file mode 100644 index 000000000..231aeaa09 --- /dev/null +++ b/layout/reftests/mathml/menclose-1o.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="madruwb"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1p.html b/layout/reftests/mathml/menclose-1p.html new file mode 100644 index 000000000..5bff5e02f --- /dev/null +++ b/layout/reftests/mathml/menclose-1p.html @@ -0,0 +1,21 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + <!-- Copyright (c) 2011 Design Science, Inc. + License: Apache License 2.0 --> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + + <body> + <!-- menclose: test that attributes have an effect --> + <math> + <menclose notation="updiagonalarrow"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-1q.html b/layout/reftests/mathml/menclose-1q.html new file mode 100644 index 000000000..0e185e72f --- /dev/null +++ b/layout/reftests/mathml/menclose-1q.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test menclose</title> + </head> + <body> + <math> + <menclose notation="phasorangle"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-actuarial-ref.html b/layout/reftests/mathml/menclose-2-actuarial-ref.html new file mode 100644 index 000000000..0b2e69da8 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-actuarial-ref.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose actuarial</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + + "L" + ((box.width+box.left) + "," + box.top) + + "L" + ((box.width+box.left) + "," + box.bottom )); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="actuarial"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-actuarial.html b/layout/reftests/mathml/menclose-2-actuarial.html new file mode 100644 index 000000000..a559f9f76 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-actuarial.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose actuarial</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + + "L" + ((box.width+box.left) + "," + box.top) + + "L" + ((box.width+box.left) + "," + box.bottom )); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="actuarial"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-bottom-ref.html b/layout/reftests/mathml/menclose-2-bottom-ref.html new file mode 100644 index 000000000..d79825a26 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-bottom-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose bottom</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.height)) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="bottom"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-bottom.html b/layout/reftests/mathml/menclose-2-bottom.html new file mode 100644 index 000000000..d11a28ecd --- /dev/null +++ b/layout/reftests/mathml/menclose-2-bottom.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose bottom</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.height)) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="bottom"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-box-ref.html b/layout/reftests/mathml/menclose-2-box-ref.html new file mode 100644 index 000000000..08df9118f --- /dev/null +++ b/layout/reftests/mathml/menclose-2-box-ref.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose box</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + r = document.getElementById("rect"); + r.setAttribute("x", box.left ); + r.setAttribute("y", box.top ); + r.setAttribute("width", box.width ); + r.setAttribute("height", box.height ); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="box"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <rect id="rect" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></rect> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-box.html b/layout/reftests/mathml/menclose-2-box.html new file mode 100644 index 000000000..c748bd074 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-box.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose box</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + r = document.getElementById("rect"); + r.setAttribute("x", box.left ); + r.setAttribute("y", box.top ); + r.setAttribute("width", box.width ); + r.setAttribute("height", box.height ); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="box"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <rect id="rect" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></rect> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-circle-ref.html b/layout/reftests/mathml/menclose-2-circle-ref.html new file mode 100644 index 000000000..17fb770e5 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-circle-ref.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose circle</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("circle").getBoundingClientRect(); + e = document.getElementById("ellipse"); + e.setAttribute("cx", (box.left + box.width/2)); + e.setAttribute("rx", (box.width/2)); + e.setAttribute("cy", (box.top + box.height/2)); + e.setAttribute("ry", (box.height/2)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="circle" notation="circle"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <ellipse id="ellipse" style="fill: none; stroke-width: 8px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></ellipse> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-circle.html b/layout/reftests/mathml/menclose-2-circle.html new file mode 100644 index 000000000..bd81e58ef --- /dev/null +++ b/layout/reftests/mathml/menclose-2-circle.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose circle</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("circle").getBoundingClientRect(); + e = document.getElementById("ellipse"); + e.setAttribute("cx", (box.left + box.width/2)); + e.setAttribute("rx", (box.width/2)); + e.setAttribute("cy", (box.top + box.height/2)); + e.setAttribute("ry", (box.height/2)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="circle" notation="circle"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <ellipse id="ellipse" style="fill: none; stroke-width: 8px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></ellipse> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-downdiagonalstrike-ref.html b/layout/reftests/mathml/menclose-2-downdiagonalstrike-ref.html new file mode 100644 index 000000000..e319835b8 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-downdiagonalstrike-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose downdiagonalstrike</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (box.width + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="downdiagonalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 6px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-downdiagonalstrike.html b/layout/reftests/mathml/menclose-2-downdiagonalstrike.html new file mode 100644 index 000000000..265e8db94 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-downdiagonalstrike.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose downdiagonalstrike</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (box.width + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="downdiagonalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 6px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-horizontalstrike-ref.html b/layout/reftests/mathml/menclose-2-horizontalstrike-ref.html new file mode 100644 index 000000000..f9b165d39 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-horizontalstrike-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose horizontalstrike</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.bottom)/2 ) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="horizontalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;" ></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-horizontalstrike.html b/layout/reftests/mathml/menclose-2-horizontalstrike.html new file mode 100644 index 000000000..d1506ce2b --- /dev/null +++ b/layout/reftests/mathml/menclose-2-horizontalstrike.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose horizontalstrike</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.bottom)/2 ) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="horizontalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-left-ref.html b/layout/reftests/mathml/menclose-2-left-ref.html new file mode 100644 index 000000000..7ad0c82ae --- /dev/null +++ b/layout/reftests/mathml/menclose-2-left-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose left</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="left"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-left.html b/layout/reftests/mathml/menclose-2-left.html new file mode 100644 index 000000000..496b811b5 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-left.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose left</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="left"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-longdiv-ref.html b/layout/reftests/mathml/menclose-2-longdiv-ref.html new file mode 100644 index 000000000..4558d0f7d --- /dev/null +++ b/layout/reftests/mathml/menclose-2-longdiv-ref.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose longdiv</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + var x = " " + box.left + "," + box.top + " " ; + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.height)) + + "Q" + ((box.left + 15) + "," + (box.top + box.height)/2) + x + + "L" + ((box.left + box.width) + "," + box.top)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="longdiv"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 11px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-longdiv.html b/layout/reftests/mathml/menclose-2-longdiv.html new file mode 100644 index 000000000..673549ebf --- /dev/null +++ b/layout/reftests/mathml/menclose-2-longdiv.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose longdiv</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + var x = " " + box.left + "," + box.top + " " ; + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.top + box.height)) + + "Q" + ((box.left + 15) + "," + (box.top + box.height)/2) + x + + "L" + ((box.left + box.width) + "," + box.top)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="longdiv"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 11px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-phasorangle-ref.html b/layout/reftests/mathml/menclose-2-phasorangle-ref.html new file mode 100644 index 000000000..497aab008 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-phasorangle-ref.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose phasorangle</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + var w = 8 * 2; // kPhasorangleWidth * rulethickness + var H = 2 * w; // slope 2 + + document.getElementById("path").setAttribute("d", + "M" + (box.right + "," + box.bottom) + + "L" + (box.left + "," + box.bottom ) + + "l" + ((w) + "," + (-H))); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="phasorangle"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 5px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-phasorangle.html b/layout/reftests/mathml/menclose-2-phasorangle.html new file mode 100644 index 000000000..1e71aa17f --- /dev/null +++ b/layout/reftests/mathml/menclose-2-phasorangle.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose phasorangle</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + var w = 8 * 2; // kPhasorangleWidth * rulethickness + var H = 2 * w; // slope 2 + + document.getElementById("path").setAttribute("d", + "M" + (box.right + "," + box.bottom) + + "L" + (box.left + "," + box.bottom ) + + "l" + ((w) + "," + (-H))); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="phasorangle"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 5px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-right-ref.html b/layout/reftests/mathml/menclose-2-right-ref.html new file mode 100644 index 000000000..41260a813 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-right-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose right</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + ((box.left + box.width) + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="right"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-right.html b/layout/reftests/mathml/menclose-2-right.html new file mode 100644 index 000000000..3da78f965 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-right.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose right</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + ((box.left + box.width) + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="right"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-roundedbox-ref.html b/layout/reftests/mathml/menclose-2-roundedbox-ref.html new file mode 100644 index 000000000..61231df36 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-roundedbox-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<head> + <meta charset="utf-8"/> + <title>menclose roundedbox</title> + + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("roundedbox").getBoundingClientRect(); + r = document.getElementById("box"); + r.style.left = (box.left - 6) + "px"; + r.style.top = (box.top - 6) + "px"; + r.style.width = (box.width - 6) + "px"; + r.style.height = (box.height - 6) + "px"; + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> +</head> +<body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="roundedbox" notation="roundedbox"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div id="box" style="position: absolute; border:10px solid #000; border-radius:10px 10px 10px 10px;" > + </div> + +</body> +</html> diff --git a/layout/reftests/mathml/menclose-2-roundedbox.html b/layout/reftests/mathml/menclose-2-roundedbox.html new file mode 100644 index 000000000..fbd7ba098 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-roundedbox.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<head> + <meta charset="utf-8"/> + <title>menclose roundedbox</title> + + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("roundedbox").getBoundingClientRect(); + r = document.getElementById("box"); + r.style.left = (box.left - 6) + "px"; + r.style.top = (box.top - 6) + "px"; + r.style.width = (box.width - 6) + "px"; + r.style.height = (box.height - 6) + "px"; + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> +</head> +<body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="roundedbox" notation="roundedbox"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div id="box" style="position: absolute; border:10px solid #000; border-radius:10px 10px 10px 10px;" > + </div> + +</body> +</html> diff --git a/layout/reftests/mathml/menclose-2-top-ref.html b/layout/reftests/mathml/menclose-2-top-ref.html new file mode 100644 index 000000000..58329ef2e --- /dev/null +++ b/layout/reftests/mathml/menclose-2-top-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose top</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="top"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-top.html b/layout/reftests/mathml/menclose-2-top.html new file mode 100644 index 000000000..36d7d1b67 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-top.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose top</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.top) + " " + + "l" + (box.width + "," + 0)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="top"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-updiagonalarrow-ref.html b/layout/reftests/mathml/menclose-2-updiagonalarrow-ref.html new file mode 100644 index 000000000..11d27e1d6 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-updiagonalarrow-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalarrow</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.height + box.top)) + + "L" + ((box.width + box.left) + "," + box.top)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="updiagonalarrow"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 11px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-updiagonalarrow.html b/layout/reftests/mathml/menclose-2-updiagonalarrow.html new file mode 100644 index 000000000..de7c1d54b --- /dev/null +++ b/layout/reftests/mathml/menclose-2-updiagonalarrow.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalarrow</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + (box.height + box.top)) + + "L" + ((box.width + box.left) + "," + box.top)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="updiagonalarrow"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 11px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-updiagonalstrike-ref.html b/layout/reftests/mathml/menclose-2-updiagonalstrike-ref.html new file mode 100644 index 000000000..e5eec1202 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-updiagonalstrike-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalstrike</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.bottom) + " " + + "l" + (box.width + "," + (-box.height))); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="updiagonalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 5px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-updiagonalstrike.html b/layout/reftests/mathml/menclose-2-updiagonalstrike.html new file mode 100644 index 000000000..29031fe53 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-updiagonalstrike.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalstrike</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + (box.left + "," + box.bottom) + " " + + "l" + (box.width + "," + (-box.height))); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="updiagonalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 5px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-verticalstrike-ref.html b/layout/reftests/mathml/menclose-2-verticalstrike-ref.html new file mode 100644 index 000000000..18ea1056a --- /dev/null +++ b/layout/reftests/mathml/menclose-2-verticalstrike-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose verticalstrike</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + ((box.right + box.left)/2 + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <mphantom> + <menclose id="box" notation="verticalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </mphantom> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-2-verticalstrike.html b/layout/reftests/mathml/menclose-2-verticalstrike.html new file mode 100644 index 000000000..0ca02bb38 --- /dev/null +++ b/layout/reftests/mathml/menclose-2-verticalstrike.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose verticalstrike</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box = document.getElementById("box").getBoundingClientRect(); + document.getElementById("path").setAttribute("d", + "M" + ((box.right + box.left)/2 + "," + box.top) + " " + + "l" + (0 + "," + box.height)); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="box" notation="verticalstrike"> + <mspace width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + + <div style="position: absolute; left: 0px; top: 0px;"> + <svg width="500px" height="500px"> + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> + </svg> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-box-ref.html b/layout/reftests/mathml/menclose-3-box-ref.html new file mode 100644 index 000000000..0d718ee05 --- /dev/null +++ b/layout/reftests/mathml/menclose-3-box-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose box</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="left top right bottom"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-box.html b/layout/reftests/mathml/menclose-3-box.html new file mode 100644 index 000000000..69c3e8f68 --- /dev/null +++ b/layout/reftests/mathml/menclose-3-box.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose box</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="box"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-default-ref.html b/layout/reftests/mathml/menclose-3-default-ref.html new file mode 100644 index 000000000..db9d4375a --- /dev/null +++ b/layout/reftests/mathml/menclose-3-default-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose default</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-default.html b/layout/reftests/mathml/menclose-3-default.html new file mode 100644 index 000000000..ae2ad36d3 --- /dev/null +++ b/layout/reftests/mathml/menclose-3-default.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose default</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="longdiv"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-invalid-ref.html b/layout/reftests/mathml/menclose-3-invalid-ref.html new file mode 100644 index 000000000..08e455c77 --- /dev/null +++ b/layout/reftests/mathml/menclose-3-invalid-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose invalid</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-invalid.html b/layout/reftests/mathml/menclose-3-invalid.html new file mode 100644 index 000000000..5af96ba20 --- /dev/null +++ b/layout/reftests/mathml/menclose-3-invalid.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose invalid</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="not_a_vaild_notation"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-madruwb-ref.html b/layout/reftests/mathml/menclose-3-madruwb-ref.html new file mode 100644 index 000000000..58ed5903b --- /dev/null +++ b/layout/reftests/mathml/menclose-3-madruwb-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test menclose madruwb</title> + <meta charset="utf-8"/> + </head> + + <body> + <!-- menclose: madruwb --> + <math> + <menclose notation="right bottom"><mi>x</mi></menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-madruwb.html b/layout/reftests/mathml/menclose-3-madruwb.html new file mode 100644 index 000000000..0c616e0f1 --- /dev/null +++ b/layout/reftests/mathml/menclose-3-madruwb.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test menclose madruwb</title> + <meta charset="utf-8"/> + </head> + + <body> + <!-- menclose: madruwb --> + <math> + <menclose notation="madruwb"><mi>x</mi></menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-multiple-ref.html b/layout/reftests/mathml/menclose-3-multiple-ref.html new file mode 100644 index 000000000..c42a504bb --- /dev/null +++ b/layout/reftests/mathml/menclose-3-multiple-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose multiple</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="top top left circle"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-multiple.html b/layout/reftests/mathml/menclose-3-multiple.html new file mode 100644 index 000000000..01f0536c0 --- /dev/null +++ b/layout/reftests/mathml/menclose-3-multiple.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose multiple</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="circle left top"> + <mspace width="100px" height="50px"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-radical-ref.html b/layout/reftests/mathml/menclose-3-radical-ref.html new file mode 100644 index 000000000..13a092624 --- /dev/null +++ b/layout/reftests/mathml/menclose-3-radical-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test menclose radical</title> + <meta charset="utf-8"/> + </head> + + <body> + <!-- menclose: radical --> + <math> + <menclose notation="radical" style="font-size:12px;"><mi>x</mi></menclose> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-radical.html b/layout/reftests/mathml/menclose-3-radical.html new file mode 100644 index 000000000..fcdb9a044 --- /dev/null +++ b/layout/reftests/mathml/menclose-3-radical.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test menclose radical</title> + <meta charset="utf-8"/> + </head> + + <body> + <!-- menclose: radical --> + <math> + <msqrt style="font-size:12px;"><mi>x</mi></msqrt> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-unknown-ref.html b/layout/reftests/mathml/menclose-3-unknown-ref.html new file mode 100644 index 000000000..20f3a72eb --- /dev/null +++ b/layout/reftests/mathml/menclose-3-unknown-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose unknown</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="circle"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-3-unknown.html b/layout/reftests/mathml/menclose-3-unknown.html new file mode 100644 index 000000000..88f5b0d2d --- /dev/null +++ b/layout/reftests/mathml/menclose-3-unknown.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose unknown</title> + <meta charset="utf-8"/> + </head> + + <body> + <math> + <menclose notation="circle unknown"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-4.html b/layout/reftests/mathml/menclose-4.html new file mode 100644 index 000000000..17d1b6413 --- /dev/null +++ b/layout/reftests/mathml/menclose-4.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose inner and outer circle</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function doTest() + { + var box1 = document.getElementById("outer").getBoundingClientRect(); + var box2 = document.getElementById("inner").getBoundingClientRect(); + var epsilon = 0.1; + if ((box1.width >= ((Math.sqrt(2) - epsilon)*box2.width)) && (box1.height >= ((Math.sqrt(2) - epsilon)*box2.height))) { + document.body.innerHTML = "Pass"; + } + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <div style="position: absolute; left: 20px; top: 20px;"> + <math> + <menclose id="outer" notation="circle"> + <mspace id="inner" width="200px" height="100px"></mspace> + </menclose> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-actuarial-ref.html b/layout/reftests/mathml/menclose-5-actuarial-ref.html new file mode 100644 index 000000000..a8a020338 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-actuarial-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose actuarial</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="actuarial"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-actuarial.html b/layout/reftests/mathml/menclose-5-actuarial.html new file mode 100644 index 000000000..f1b112bea --- /dev/null +++ b/layout/reftests/mathml/menclose-5-actuarial.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose actuarial</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","actuarial"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-bottom-ref.html b/layout/reftests/mathml/menclose-5-bottom-ref.html new file mode 100644 index 000000000..b489c08d0 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-bottom-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose bottom</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="bottom"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-bottom.html b/layout/reftests/mathml/menclose-5-bottom.html new file mode 100644 index 000000000..5c0051162 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-bottom.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose bottom</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","bottom"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-box-ref.html b/layout/reftests/mathml/menclose-5-box-ref.html new file mode 100644 index 000000000..3b47a31e9 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-box-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose box</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="box"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-box.html b/layout/reftests/mathml/menclose-5-box.html new file mode 100644 index 000000000..08bbe9d9e --- /dev/null +++ b/layout/reftests/mathml/menclose-5-box.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose box</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","box"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-circle-ref.html b/layout/reftests/mathml/menclose-5-circle-ref.html new file mode 100644 index 000000000..cf9b8ec43 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-circle-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose circle</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="circle"><mspace width="100px" height="50px"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-circle.html b/layout/reftests/mathml/menclose-5-circle.html new file mode 100644 index 000000000..14bdd413f --- /dev/null +++ b/layout/reftests/mathml/menclose-5-circle.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose circle</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","circle"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-downdiagonalstrike-ref.html b/layout/reftests/mathml/menclose-5-downdiagonalstrike-ref.html new file mode 100644 index 000000000..466b327bd --- /dev/null +++ b/layout/reftests/mathml/menclose-5-downdiagonalstrike-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose downdiagonalstrike</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="downdiagonalstrike"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-downdiagonalstrike.html b/layout/reftests/mathml/menclose-5-downdiagonalstrike.html new file mode 100644 index 000000000..df6e1311b --- /dev/null +++ b/layout/reftests/mathml/menclose-5-downdiagonalstrike.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose downdiagonalstrike</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","downdiagonalstrike"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-horizontalstrike-ref.html b/layout/reftests/mathml/menclose-5-horizontalstrike-ref.html new file mode 100644 index 000000000..9ac8418ba --- /dev/null +++ b/layout/reftests/mathml/menclose-5-horizontalstrike-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose horizontalstrike</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="horizontalstrike"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-horizontalstrike.html b/layout/reftests/mathml/menclose-5-horizontalstrike.html new file mode 100644 index 000000000..497be6119 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-horizontalstrike.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose horizontalstrike</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","horizontalstrike"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-left-ref.html b/layout/reftests/mathml/menclose-5-left-ref.html new file mode 100644 index 000000000..025c446f0 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-left-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose left</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="left"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-left.html b/layout/reftests/mathml/menclose-5-left.html new file mode 100644 index 000000000..4072aef2b --- /dev/null +++ b/layout/reftests/mathml/menclose-5-left.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose left</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","left"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-longdiv-ref.html b/layout/reftests/mathml/menclose-5-longdiv-ref.html new file mode 100644 index 000000000..c6e072fcb --- /dev/null +++ b/layout/reftests/mathml/menclose-5-longdiv-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose longdiv</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="longdiv"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-longdiv.html b/layout/reftests/mathml/menclose-5-longdiv.html new file mode 100644 index 000000000..028f21915 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-longdiv.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose longdiv</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","longdiv"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-madruwb-ref.html b/layout/reftests/mathml/menclose-5-madruwb-ref.html new file mode 100644 index 000000000..06ef43658 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-madruwb-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose madruwb</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="madruwb"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-madruwb.html b/layout/reftests/mathml/menclose-5-madruwb.html new file mode 100644 index 000000000..6b46b6783 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-madruwb.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose madruwb</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","madruwb"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-phasorangle-ref.html b/layout/reftests/mathml/menclose-5-phasorangle-ref.html new file mode 100644 index 000000000..331875a99 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-phasorangle-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose actuarial</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="phasorangle"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-phasorangle.html b/layout/reftests/mathml/menclose-5-phasorangle.html new file mode 100644 index 000000000..b1b007bfd --- /dev/null +++ b/layout/reftests/mathml/menclose-5-phasorangle.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose phasorangle</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","phasorangle"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-radical-ref.html b/layout/reftests/mathml/menclose-5-radical-ref.html new file mode 100644 index 000000000..ac16c05a3 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-radical-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose radical</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="radical"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-radical.html b/layout/reftests/mathml/menclose-5-radical.html new file mode 100644 index 000000000..205b74bc7 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-radical.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose radical</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","radical"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-right-ref.html b/layout/reftests/mathml/menclose-5-right-ref.html new file mode 100644 index 000000000..bee5728b9 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-right-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose right</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="right"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-right.html b/layout/reftests/mathml/menclose-5-right.html new file mode 100644 index 000000000..89843b605 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-right.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose right</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","right"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-roundedbox-ref.html b/layout/reftests/mathml/menclose-5-roundedbox-ref.html new file mode 100644 index 000000000..da4500d5f --- /dev/null +++ b/layout/reftests/mathml/menclose-5-roundedbox-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose roundedbox</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="roundedbox"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-roundedbox.html b/layout/reftests/mathml/menclose-5-roundedbox.html new file mode 100644 index 000000000..15eac4b47 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-roundedbox.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose roundedbox</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","roundedbox"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-top-ref.html b/layout/reftests/mathml/menclose-5-top-ref.html new file mode 100644 index 000000000..94ffb8881 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-top-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose top</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="top"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-top.html b/layout/reftests/mathml/menclose-5-top.html new file mode 100644 index 000000000..68eee29ea --- /dev/null +++ b/layout/reftests/mathml/menclose-5-top.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose top</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","top"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-updiagonalarrow-ref.html b/layout/reftests/mathml/menclose-5-updiagonalarrow-ref.html new file mode 100644 index 000000000..9c235e85f --- /dev/null +++ b/layout/reftests/mathml/menclose-5-updiagonalarrow-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose updiagonalarrow</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="updiagonalarrow"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-updiagonalarrow.html b/layout/reftests/mathml/menclose-5-updiagonalarrow.html new file mode 100644 index 000000000..b72059c0e --- /dev/null +++ b/layout/reftests/mathml/menclose-5-updiagonalarrow.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalarrow</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","updiagonalarrow"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-updiagonalstrike-ref.html b/layout/reftests/mathml/menclose-5-updiagonalstrike-ref.html new file mode 100644 index 000000000..2e5bce42e --- /dev/null +++ b/layout/reftests/mathml/menclose-5-updiagonalstrike-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose updiagonalstrike</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="updiagonalstrike"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-updiagonalstrike.html b/layout/reftests/mathml/menclose-5-updiagonalstrike.html new file mode 100644 index 000000000..797fb5598 --- /dev/null +++ b/layout/reftests/mathml/menclose-5-updiagonalstrike.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalstrike</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","updiagonalstrike"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-verticalstrike-ref.html b/layout/reftests/mathml/menclose-5-verticalstrike-ref.html new file mode 100644 index 000000000..4295e9f9d --- /dev/null +++ b/layout/reftests/mathml/menclose-5-verticalstrike-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose verticalstrike</title> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="verticalstrike"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-5-verticalstrike.html b/layout/reftests/mathml/menclose-5-verticalstrike.html new file mode 100644 index 000000000..1b153507a --- /dev/null +++ b/layout/reftests/mathml/menclose-5-verticalstrike.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose verticalstrike</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').setAttribute("notation","verticalstrike"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose"><mspace width="100px" height="50px"></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-actuarial.html b/layout/reftests/mathml/menclose-6-actuarial.html new file mode 100644 index 000000000..6bd8c8fcf --- /dev/null +++ b/layout/reftests/mathml/menclose-6-actuarial.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose actuarial</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="actuarial"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-bottom.html b/layout/reftests/mathml/menclose-6-bottom.html new file mode 100644 index 000000000..9b876c7ea --- /dev/null +++ b/layout/reftests/mathml/menclose-6-bottom.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose bottom</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="bottom"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-box.html b/layout/reftests/mathml/menclose-6-box.html new file mode 100644 index 000000000..712af11e6 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-box.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose box</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="box"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-circle.html b/layout/reftests/mathml/menclose-6-circle.html new file mode 100644 index 000000000..77120e31b --- /dev/null +++ b/layout/reftests/mathml/menclose-6-circle.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose circle</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="circle"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-downdiagonalstrike.html b/layout/reftests/mathml/menclose-6-downdiagonalstrike.html new file mode 100644 index 000000000..b4d2d7434 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-downdiagonalstrike.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose downdiagonalstrike</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="downdiagonalstrike"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-horizontalstrike.html b/layout/reftests/mathml/menclose-6-horizontalstrike.html new file mode 100644 index 000000000..7bb007836 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-horizontalstrike.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose horizontalstrike</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="horizontalstrike"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-left.html b/layout/reftests/mathml/menclose-6-left.html new file mode 100644 index 000000000..701d49b34 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-left.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose left</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="left"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-longdiv.html b/layout/reftests/mathml/menclose-6-longdiv.html new file mode 100644 index 000000000..07f680474 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-longdiv.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose longdiv</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="longdiv"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-madruwb.html b/layout/reftests/mathml/menclose-6-madruwb.html new file mode 100644 index 000000000..bf9f13c3e --- /dev/null +++ b/layout/reftests/mathml/menclose-6-madruwb.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose madruwb</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="madruwb"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-phasorangle.html b/layout/reftests/mathml/menclose-6-phasorangle.html new file mode 100644 index 000000000..061bfa169 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-phasorangle.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose phasorangle</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </head> + <body> + <p> + <math> + <menclose id="testMenclose" notation="phasorangle"> + <mspace width="100px" height="50px" mathbackground="blue"></mspace> + </menclose> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-radical.html b/layout/reftests/mathml/menclose-6-radical.html new file mode 100644 index 000000000..c1a272f88 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-radical.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose radical</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="radical"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-ref.html b/layout/reftests/mathml/menclose-6-ref.html new file mode 100644 index 000000000..5b091e76d --- /dev/null +++ b/layout/reftests/mathml/menclose-6-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <title>menclose 6 reference</title> + </head> + <body> + <p> + <math><menclose><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-right.html b/layout/reftests/mathml/menclose-6-right.html new file mode 100644 index 000000000..366ea85da --- /dev/null +++ b/layout/reftests/mathml/menclose-6-right.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose right</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="right"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-roundedbox.html b/layout/reftests/mathml/menclose-6-roundedbox.html new file mode 100644 index 000000000..545976668 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-roundedbox.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose roundedbox</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="roundedbox"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-top.html b/layout/reftests/mathml/menclose-6-top.html new file mode 100644 index 000000000..439cb8d9e --- /dev/null +++ b/layout/reftests/mathml/menclose-6-top.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose top</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="top"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-updiagonalarrow.html b/layout/reftests/mathml/menclose-6-updiagonalarrow.html new file mode 100644 index 000000000..9be5489c7 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-updiagonalarrow.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalarrow</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="updiagonalarrow"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-updiagonalstrike.html b/layout/reftests/mathml/menclose-6-updiagonalstrike.html new file mode 100644 index 000000000..8f504eee2 --- /dev/null +++ b/layout/reftests/mathml/menclose-6-updiagonalstrike.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose updiagonalstrike</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="updiagonalstrike"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/menclose-6-verticalstrike.html b/layout/reftests/mathml/menclose-6-verticalstrike.html new file mode 100644 index 000000000..dafb509ee --- /dev/null +++ b/layout/reftests/mathml/menclose-6-verticalstrike.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>menclose verticalstrike</title> + <script type="text/javascript"> + function doTest() { + document.getElementById('testMenclose').removeAttribute("notation"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <p> + <math><menclose id="testMenclose" notation="verticalstrike"><mspace width="100px" height="50px" mathbackground="blue"></mspace></menclose></math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-1-ref.xhtml b/layout/reftests/mathml/mfenced-1-ref.xhtml new file mode 100644 index 000000000..97e75d204 --- /dev/null +++ b/layout/reftests/mathml/mfenced-1-ref.xhtml @@ -0,0 +1,21 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Check whether whitespaces are ignored in the "separators" attribute of the mfenced tag</title> + </head> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced separators=";"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + </mfenced> + <mfenced separators=",;."> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + </mfenced> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-1.xhtml b/layout/reftests/mathml/mfenced-1.xhtml new file mode 100644 index 000000000..cdb43de18 --- /dev/null +++ b/layout/reftests/mathml/mfenced-1.xhtml @@ -0,0 +1,28 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Check whether whitespaces are ignored in the "separators" attribute of the mfenced tag</title> + </head> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <!-- Note: each blank is a whitespace sequence "U+0020 U+0009 U+000a U+000d" and must not be modified! --> + <mfenced separators=" +
; +
"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + </mfenced> + <!-- Note: each blank is a whitespace sequence "U+0020 U+0009 U+000a U+000d" and must not be modified! --> + <mfenced separators=" +
, +
; +
."> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + </mfenced> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-10-ref.html b/layout/reftests/mathml/mfenced-10-ref.html new file mode 100644 index 000000000..de7a76788 --- /dev/null +++ b/layout/reftests/mathml/mfenced-10-ref.html @@ -0,0 +1,29 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Stretchy fences --> + + <math> + <mrow> + + <mo form="prefix" fence="true" stretchy="true">(</mo> + + <mtable> + <mtr> + <mtd><mi>a</mi></mtd> + <mtd><mi>b</mi></mtd> + </mtr> + <mtr> + <mtd><mi>c</mi></mtd> + <mtd><mi>d</mi></mtd> + </mtr> + </mtable> + + <mo form="postfix" fence="true" stretchy="true">)</mo> + + </mrow> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-10.html b/layout/reftests/mathml/mfenced-10.html new file mode 100644 index 000000000..b778b5c6f --- /dev/null +++ b/layout/reftests/mathml/mfenced-10.html @@ -0,0 +1,23 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Stretchy fences --> + + <math> + <mfenced> + <mtable> + <mtr> + <mtd><mi>a</mi></mtd> + <mtd><mi>b</mi></mtd> + </mtr> + <mtr> + <mtd><mi>c</mi></mtd> + <mtd><mi>d</mi></mtd> + </mtr> + </mtable> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-11-ref.html b/layout/reftests/mathml/mfenced-11-ref.html new file mode 100644 index 000000000..069f203a7 --- /dev/null +++ b/layout/reftests/mathml/mfenced-11-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Size of fences when empty --> + + <math> + <mrow> + <mo>(</mo> + <mn>.</mn> + <mo>)</mo> + </mrow> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-11.html b/layout/reftests/mathml/mfenced-11.html new file mode 100644 index 000000000..744c9d203 --- /dev/null +++ b/layout/reftests/mathml/mfenced-11.html @@ -0,0 +1,14 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Size of fences when empty --> + + <math> + <mfenced> + <mn>.</mn> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-12-ref.html b/layout/reftests/mathml/mfenced-12-ref.html new file mode 100644 index 000000000..10d9856b1 --- /dev/null +++ b/layout/reftests/mathml/mfenced-12-ref.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + +<math style="font-size:25px; position: absolute; top: 10px; left:10px;"> + <mrow id="outer"> + <mo>(</mo> + <mrow> + <mn id="a" style="visibility:hidden;">a</mn> + <mo>&</mo> + <mn id="c" style="visibility:hidden;">c</mn> + </mrow> + <mo>)</mo> + </mrow> +</math> + +<!-- Implementation kludge. <mfenced> renders the position of the ampersand in + a slightly different position compared to <mo>+<mrow>. + In this test we are only concerned about the size of the fences "(" and + ")", so the ampersand gets redacted. --> +<div id="div" style="position: absolute; background:black; top: 0px; + height: 120px;"></div> + +<script> + function doTest() + { + a = document.getElementById("a"); + c = document.getElementById("c"); + div = document.getElementById("div"); + outer = document.getElementById("outer"); + + left = a.getBoundingClientRect().left; // div's left + div.style.left = left + 'px'; + div.style.width = (c.getBoundingClientRect().right - left ) + 'px'; + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); +</script> + +</html> diff --git a/layout/reftests/mathml/mfenced-12.html b/layout/reftests/mathml/mfenced-12.html new file mode 100644 index 000000000..1ec200e4c --- /dev/null +++ b/layout/reftests/mathml/mfenced-12.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + +<math style="font-size:25px; position: absolute; top: 10px; left:10px;"> + <mfenced id="outer" separators="&"> + <mn id="a" style="visibility:hidden;">a</mn> + <mn id="c" style="visibility:hidden;">c</mn> + </mfenced> +</math> + +<!-- Implementation kludge. <mfenced> renders the position of the ampersand in + a slightly different position compared to <mo>+<mrow>. + In this test we are only concerned about the size of the fences "(" and + ")", so the ampersand gets redacted. --> +<div id="div" style="position: absolute; background:black; top: 0px; + height: 120px;"></div> + +<script> + function doTest() + { + a = document.getElementById("a"); + c = document.getElementById("c"); + div = document.getElementById("div"); + outer = document.getElementById("outer"); + + left = a.getBoundingClientRect().left; // div's left + div.style.left = left + 'px'; + div.style.width = (c.getBoundingClientRect().right - left ) + 'px'; + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); +</script> + +</html> diff --git a/layout/reftests/mathml/mfenced-2-ref.xhtml b/layout/reftests/mathml/mfenced-2-ref.xhtml new file mode 100644 index 000000000..443d8b935 --- /dev/null +++ b/layout/reftests/mathml/mfenced-2-ref.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-2a.xhtml b/layout/reftests/mathml/mfenced-2a.xhtml new file mode 100644 index 000000000..da797212b --- /dev/null +++ b/layout/reftests/mathml/mfenced-2a.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open=" a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="  a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="	a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="		a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open=" 	

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="  		



a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-2b.xhtml b/layout/reftests/mathml/mfenced-2b.xhtml new file mode 100644 index 000000000..5dae0ab8a --- /dev/null +++ b/layout/reftests/mathml/mfenced-2b.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a  "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a	"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a		"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a 	

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a  		



"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-3-ref.xhtml b/layout/reftests/mathml/mfenced-3-ref.xhtml new file mode 100644 index 000000000..cad9ec85f --- /dev/null +++ b/layout/reftests/mathml/mfenced-3-ref.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-3a.xhtml b/layout/reftests/mathml/mfenced-3a.xhtml new file mode 100644 index 000000000..e5f8c28b3 --- /dev/null +++ b/layout/reftests/mathml/mfenced-3a.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a  a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a	a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a		a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a 	

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a  		



a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-3b.xhtml b/layout/reftests/mathml/mfenced-3b.xhtml new file mode 100644 index 000000000..739d76640 --- /dev/null +++ b/layout/reftests/mathml/mfenced-3b.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open=" a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="  a  a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="	a	a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="		a		a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="
a
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="

a

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="
a
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="

a

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open=" 	

a 	

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="  		



a  		



a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-3c.xhtml b/layout/reftests/mathml/mfenced-3c.xhtml new file mode 100644 index 000000000..206dd83e4 --- /dev/null +++ b/layout/reftests/mathml/mfenced-3c.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a a "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a  a  "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a	a	"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a		a		"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a
a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a

a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a
a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a

a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a 	

a 	

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="a  		



a  		



"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-3d.xhtml b/layout/reftests/mathml/mfenced-3d.xhtml new file mode 100644 index 000000000..6c8f67bcd --- /dev/null +++ b/layout/reftests/mathml/mfenced-3d.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open=" a a "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="  a  a  "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="	a	a	"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="		a		a		"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="
a
a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="

a

a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="
a
a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="

a

a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open=" 	

a 	

a 	

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced open="  		



a  		



a  		



"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-4-ref.xhtml b/layout/reftests/mathml/mfenced-4-ref.xhtml new file mode 100644 index 000000000..01a748347 --- /dev/null +++ b/layout/reftests/mathml/mfenced-4-ref.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-4a.xhtml b/layout/reftests/mathml/mfenced-4a.xhtml new file mode 100644 index 000000000..76470fdff --- /dev/null +++ b/layout/reftests/mathml/mfenced-4a.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close=" a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="  a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="	a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="		a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close=" 	

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="  		



a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-4b.xhtml b/layout/reftests/mathml/mfenced-4b.xhtml new file mode 100644 index 000000000..d94d70fd2 --- /dev/null +++ b/layout/reftests/mathml/mfenced-4b.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a  "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a	"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a		"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a 	

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a  		



"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-5-ref.xhtml b/layout/reftests/mathml/mfenced-5-ref.xhtml new file mode 100644 index 000000000..48cb7451d --- /dev/null +++ b/layout/reftests/mathml/mfenced-5-ref.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-5a.xhtml b/layout/reftests/mathml/mfenced-5a.xhtml new file mode 100644 index 000000000..9ef28fbd2 --- /dev/null +++ b/layout/reftests/mathml/mfenced-5a.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a  a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a	a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a		a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a 	

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a  		



a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-5b.xhtml b/layout/reftests/mathml/mfenced-5b.xhtml new file mode 100644 index 000000000..078afefc9 --- /dev/null +++ b/layout/reftests/mathml/mfenced-5b.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close=" a a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="  a  a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="	a	a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="		a		a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="
a
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="

a

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="
a
a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="

a

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close=" 	

a 	

a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="  		



a  		



a"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-5c.xhtml b/layout/reftests/mathml/mfenced-5c.xhtml new file mode 100644 index 000000000..7a977e12e --- /dev/null +++ b/layout/reftests/mathml/mfenced-5c.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a a "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a  a  "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a	a	"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a		a		"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a
a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a

a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a
a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a

a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a 	

a 	

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="a  		



a  		



"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-5d.xhtml b/layout/reftests/mathml/mfenced-5d.xhtml new file mode 100644 index 000000000..27832f052 --- /dev/null +++ b/layout/reftests/mathml/mfenced-5d.xhtml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>mfenced open close</title> +</head> +<body> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close=" a a "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="  a  a  "> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="	a	a	"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="		a		a		"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="
a
a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="

a

a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="
a
a
"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="

a

a

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close=" 	

a 	

a 	

"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced close="  		



a  		



a  		



"> + <mi>xxxxxxxxxx</mi> + </mfenced> +</math></p> +</body> +</html> diff --git a/layout/reftests/mathml/mfenced-6-ref.html b/layout/reftests/mathml/mfenced-6-ref.html new file mode 100644 index 000000000..d4cbaeb4d --- /dev/null +++ b/layout/reftests/mathml/mfenced-6-ref.html @@ -0,0 +1,28 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Too many separators: Excess is ignored --> + <math> + <mfenced separators=";;;;"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + <mi>e</mi> + </mfenced> + </math> + + <!-- Too few separators: Last separator is repeated --> + <math> + <mfenced separators=";;,,"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + <mi>e</mi> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-6.html b/layout/reftests/mathml/mfenced-6.html new file mode 100644 index 000000000..54a784e3e --- /dev/null +++ b/layout/reftests/mathml/mfenced-6.html @@ -0,0 +1,28 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Too many separators: Excess is ignored --> + <math> + <mfenced separators=";;;;,,,,"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + <mi>e</mi> + </mfenced> + </math> + + <!-- Too few separators: Last separator is repeated --> + <math> + <mfenced separators=";;,"> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + <mi>e</mi> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-7-ref.html b/layout/reftests/mathml/mfenced-7-ref.html new file mode 100644 index 000000000..d0d28439e --- /dev/null +++ b/layout/reftests/mathml/mfenced-7-ref.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Default values for open, close, separators --> + <math> + <mfenced open="(" close=")" separators=","> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + <mi>e</mi> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-7.html b/layout/reftests/mathml/mfenced-7.html new file mode 100644 index 000000000..14100352a --- /dev/null +++ b/layout/reftests/mathml/mfenced-7.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Default values for open, close, separators --> + <math> + <mfenced> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mi>d</mi> + <mi>e</mi> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-8-ref.html b/layout/reftests/mathml/mfenced-8-ref.html new file mode 100644 index 000000000..4134808c7 --- /dev/null +++ b/layout/reftests/mathml/mfenced-8-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Empty separators --> + + <math> + <mfenced> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-8.html b/layout/reftests/mathml/mfenced-8.html new file mode 100644 index 000000000..69cf36fc9 --- /dev/null +++ b/layout/reftests/mathml/mfenced-8.html @@ -0,0 +1,16 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- Empty separators --> + + <math> + <mfenced separators=""> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-9-ref.html b/layout/reftests/mathml/mfenced-9-ref.html new file mode 100644 index 000000000..5b9c7658f --- /dev/null +++ b/layout/reftests/mathml/mfenced-9-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- No arguments --> + + <math> + <mfenced> + <mspace /> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfenced-9.html b/layout/reftests/mathml/mfenced-9.html new file mode 100644 index 000000000..75660af9e --- /dev/null +++ b/layout/reftests/mathml/mfenced-9.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML> +<html> + <body> + + <!-- No arguments --> + + <math> + <mfenced> + </mfenced> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-1-ref.html b/layout/reftests/mathml/mfrac-A-1-ref.html new file mode 100644 index 000000000..5944def8f --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-1-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac bevelled</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%" bevelled="false"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-1.html b/layout/reftests/mathml/mfrac-A-1.html new file mode 100644 index 000000000..b161f7a2e --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-1.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac bevelled</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-2-ref.html b/layout/reftests/mathml/mfrac-A-2-ref.html new file mode 100644 index 000000000..d4111137d --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-2-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac denomalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac denomalign="left" linethickness="0"> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-2.html b/layout/reftests/mathml/mfrac-A-2.html new file mode 100644 index 000000000..af7c70f98 --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-2.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac denomalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="0"> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + <mpadded width="100px" lspace="0px"> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + </mpadded> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-3-ref.html b/layout/reftests/mathml/mfrac-A-3-ref.html new file mode 100644 index 000000000..2886b96af --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-3-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac denomalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac denomalign="right" linethickness="0"> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-3.html b/layout/reftests/mathml/mfrac-A-3.html new file mode 100644 index 000000000..fb864d05f --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-3.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac denomalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac denomalign="right" linethickness="0"> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + <mpadded width="100px" lspace="50px"> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + </mpadded> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-4-ref.html b/layout/reftests/mathml/mfrac-A-4-ref.html new file mode 100644 index 000000000..3a4915147 --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-4-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac denomalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="0"> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-4.html b/layout/reftests/mathml/mfrac-A-4.html new file mode 100644 index 000000000..79f3e2507 --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-4.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac denomalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="0"> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + <mpadded width="100px" lspace="25px"> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + </mpadded> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-5-ref.html b/layout/reftests/mathml/mfrac-A-5-ref.html new file mode 100644 index 000000000..4bcf28e91 --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-5-ref.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac linethickness</title> + </head> + <body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac linethickness="1"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-5.html b/layout/reftests/mathml/mfrac-A-5.html new file mode 100644 index 000000000..940763e2f --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-5.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac linethickness</title> + </head> + <body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="medium"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac linethickness="1"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac linethickness="medium"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-6-ref.html b/layout/reftests/mathml/mfrac-A-6-ref.html new file mode 100644 index 000000000..c2258b6e2 --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-6-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac numalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac numalign="left" linethickness="0"> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-6.html b/layout/reftests/mathml/mfrac-A-6.html new file mode 100644 index 000000000..fc24ec7bb --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-6.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac numalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="0"> + <mpadded width="100px" lspace="0px"> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + </mpadded> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-7-ref.html b/layout/reftests/mathml/mfrac-A-7-ref.html new file mode 100644 index 000000000..0b74206af --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-7-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac numalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac numalign="right" linethickness="0"> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-7.html b/layout/reftests/mathml/mfrac-A-7.html new file mode 100644 index 000000000..c5dccd8c2 --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-7.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac numalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="0"> + <mpadded width="100px" lspace="50px"> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + </mpadded> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-8-ref.html b/layout/reftests/mathml/mfrac-A-8-ref.html new file mode 100644 index 000000000..f16b03709 --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-8-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac numalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="0"> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-A-8.html b/layout/reftests/mathml/mfrac-A-8.html new file mode 100644 index 000000000..3655b6ac0 --- /dev/null +++ b/layout/reftests/mathml/mfrac-A-8.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac numalign</title> + </head> + <body> + <div style="position: absolute;"> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="0"> + <mpadded width="100px" lspace="25px"> + <mspace width="50px" height="20px" mathbackground="red"></mspace> + </mpadded> + <mspace width="100px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </div> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-1-ref.html b/layout/reftests/mathml/mfrac-B-1-ref.html new file mode 100644 index 000000000..0b1cd6f99 --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-1-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac bevelled</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%"> + <mspace width="20px" height="20px" mathbackground="red"></mspace> + <mspace width="20px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-1.html b/layout/reftests/mathml/mfrac-B-1.html new file mode 100644 index 000000000..c81bcc15d --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-1.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac bevelled</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").removeAttribute("bevelled"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" bevelled="true"> + <mspace width="20px" height="20px" mathbackground="red"></mspace> + <mspace width="20px" height="20px" mathbackground="red"></mspace> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-2-3-ref.html b/layout/reftests/mathml/mfrac-B-2-3-ref.html new file mode 100644 index 000000000..979a19719 --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-2-3-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac linethickness</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-2.html b/layout/reftests/mathml/mfrac-B-2.html new file mode 100644 index 000000000..653065a47 --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-2.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac linethickness</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").removeAttribute("linethickness"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" linethickness="thick"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-3.html b/layout/reftests/mathml/mfrac-B-3.html new file mode 100644 index 000000000..29db257db --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-3.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac linethickness</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").removeAttribute("linethickness"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" linethickness="thin"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-4-5-ref.html b/layout/reftests/mathml/mfrac-B-4-5-ref.html new file mode 100644 index 000000000..712327625 --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-4-5-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac numalign</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%"> + <mi>x</mi> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-4.html b/layout/reftests/mathml/mfrac-B-4.html new file mode 100644 index 000000000..5305367be --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-4.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac numalign</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").removeAttribute("numalign"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" numalign="left"> + <mi>x</mi> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-5.html b/layout/reftests/mathml/mfrac-B-5.html new file mode 100644 index 000000000..6785dccc2 --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-5.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac numalign</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").removeAttribute("numalign"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" numalign="right"> + <mi>x</mi> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-6-7-ref.html b/layout/reftests/mathml/mfrac-B-6-7-ref.html new file mode 100644 index 000000000..c8c7ae36a --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-6-7-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac denomalign</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%"> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + <mi>x</mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-6.html b/layout/reftests/mathml/mfrac-B-6.html new file mode 100644 index 000000000..bb4a32a0d --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-6.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac denomalign</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").removeAttribute("denomalign"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" denomalign="left"> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + <mi>x</mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-B-7.html b/layout/reftests/mathml/mfrac-B-7.html new file mode 100644 index 000000000..63e65e416 --- /dev/null +++ b/layout/reftests/mathml/mfrac-B-7.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac denomalign</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").removeAttribute("denomalign"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" denomalign="right"> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + <mi>x</mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-C-1-ref.html b/layout/reftests/mathml/mfrac-C-1-ref.html new file mode 100644 index 000000000..7481e45de --- /dev/null +++ b/layout/reftests/mathml/mfrac-C-1-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac bevelled</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%" bevelled="true"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-C-1.html b/layout/reftests/mathml/mfrac-C-1.html new file mode 100644 index 000000000..dda63fa63 --- /dev/null +++ b/layout/reftests/mathml/mfrac-C-1.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac bevelled</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").setAttribute("bevelled","true"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-C-2-ref.html b/layout/reftests/mathml/mfrac-C-2-ref.html new file mode 100644 index 000000000..29e49e440 --- /dev/null +++ b/layout/reftests/mathml/mfrac-C-2-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac linethickness</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%" linethickness="thick"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-C-2.html b/layout/reftests/mathml/mfrac-C-2.html new file mode 100644 index 000000000..bd8dcf731 --- /dev/null +++ b/layout/reftests/mathml/mfrac-C-2.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac linethickness</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").setAttribute("linethickness","thick"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-C-3-ref.html b/layout/reftests/mathml/mfrac-C-3-ref.html new file mode 100644 index 000000000..3f90baf67 --- /dev/null +++ b/layout/reftests/mathml/mfrac-C-3-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac numalign</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%" numalign="left"> + <mi>x</mi> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-C-3.html b/layout/reftests/mathml/mfrac-C-3.html new file mode 100644 index 000000000..60ba3fd18 --- /dev/null +++ b/layout/reftests/mathml/mfrac-C-3.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac numalign</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").setAttribute("numalign","left"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%"> + <mi>x</mi> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-C-4-ref.html b/layout/reftests/mathml/mfrac-C-4-ref.html new file mode 100644 index 000000000..add3a271d --- /dev/null +++ b/layout/reftests/mathml/mfrac-C-4-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac denomalign</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%" denomalign="left"> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + <mi>x</mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-C-4.html b/layout/reftests/mathml/mfrac-C-4.html new file mode 100644 index 000000000..9c650dfee --- /dev/null +++ b/layout/reftests/mathml/mfrac-C-4.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac denomalign</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").setAttribute("denomalign","left"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%"> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + <mi>x</mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-D-1-ref.html b/layout/reftests/mathml/mfrac-D-1-ref.html new file mode 100644 index 000000000..7481e45de --- /dev/null +++ b/layout/reftests/mathml/mfrac-D-1-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac bevelled</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%" bevelled="true"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-D-1.html b/layout/reftests/mathml/mfrac-D-1.html new file mode 100644 index 000000000..75e2b1175 --- /dev/null +++ b/layout/reftests/mathml/mfrac-D-1.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac bevelled</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").setAttribute("bevelled","true"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" bevelled="false"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-D-2-ref.html b/layout/reftests/mathml/mfrac-D-2-ref.html new file mode 100644 index 000000000..29e49e440 --- /dev/null +++ b/layout/reftests/mathml/mfrac-D-2-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac linethickness</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%" linethickness="thick"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-D-2.html b/layout/reftests/mathml/mfrac-D-2.html new file mode 100644 index 000000000..5f622a450 --- /dev/null +++ b/layout/reftests/mathml/mfrac-D-2.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac linethickness</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").setAttribute("linethickness","thick"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" linethickness="thin"> + <mi> a </mi> + <mi> b </mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-D-3-ref.html b/layout/reftests/mathml/mfrac-D-3-ref.html new file mode 100644 index 000000000..3f90baf67 --- /dev/null +++ b/layout/reftests/mathml/mfrac-D-3-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac numalign</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%" numalign="left"> + <mi>x</mi> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-D-3.html b/layout/reftests/mathml/mfrac-D-3.html new file mode 100644 index 000000000..1929e737f --- /dev/null +++ b/layout/reftests/mathml/mfrac-D-3.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac numalign</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").setAttribute("numalign","left"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" numalign="right"> + <mi>x</mi> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-D-4-ref.html b/layout/reftests/mathml/mfrac-D-4-ref.html new file mode 100644 index 000000000..add3a271d --- /dev/null +++ b/layout/reftests/mathml/mfrac-D-4-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac denomalign</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%" denomalign="left"> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + <mi>x</mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-D-4.html b/layout/reftests/mathml/mfrac-D-4.html new file mode 100644 index 000000000..6bd39b8b9 --- /dev/null +++ b/layout/reftests/mathml/mfrac-D-4.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac denomalign</title> + <script type="text/javascript"> + function doTest() { + document.getElementById("testMfrac").setAttribute("denomalign","left"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac id="testMfrac" style="font-size: 300%" denomalign="right"> + <mrow><mn>a</mn><mo>+</mo><mn>b</mn><mo>+</mo><mn>c</mn><mo>+</mo><mn>d</mn><mo>+</mo><mn>e</mn></mrow> + <mi>x</mi> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-E-1-ref.html b/layout/reftests/mathml/mfrac-E-1-ref.html new file mode 100644 index 000000000..966d356ba --- /dev/null +++ b/layout/reftests/mathml/mfrac-E-1-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac childnode update</title> + </head> + <body> + <math> + <mfrac style="font-size: 300%"> + <mfrac> + <mi> a </mi> + <mi> b </mi> + </mfrac> + <mfrac> + <mi> c </mi> + <mi> d </mi> + </mfrac> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-E-1.html b/layout/reftests/mathml/mfrac-E-1.html new file mode 100644 index 000000000..e245ef876 --- /dev/null +++ b/layout/reftests/mathml/mfrac-E-1.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac childnode update</title> + <script type="text/javascript"> + function doTest() { + var x = document.getElementById("innerMfrac"); + var y = document.createElementNS("http://www.w3.org/1998/Math/MathML","mi"); + var z = document.createElementNS("http://www.w3.org/1998/Math/MathML","mi"); + y.innerHTML = "c"; + z.innerHTML = "d"; + x.appendChild(y); + x.appendChild(z); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate",doTest, false); + </script> + </head> + <body> + <math> + <mfrac style="font-size: 300%"> + <mfrac> + <mi> a </mi> + <mi> b </mi> + </mfrac> + <mfrac id="innerMfrac"> + </mfrac> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mfrac-linethickness-1-ref.xhtml b/layout/reftests/mathml/mfrac-linethickness-1-ref.xhtml new file mode 100644 index 000000000..11ca24afa --- /dev/null +++ b/layout/reftests/mathml/mfrac-linethickness-1-ref.xhtml @@ -0,0 +1,20 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="medium"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac linethickness="1"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac linethickness="medium"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mfrac-linethickness-1.xhtml b/layout/reftests/mathml/mfrac-linethickness-1.xhtml new file mode 100644 index 000000000..526279858 --- /dev/null +++ b/layout/reftests/mathml/mfrac-linethickness-1.xhtml @@ -0,0 +1,20 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac linethickness="1"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mfrac-linethickness-2-ref.xhtml b/layout/reftests/mathml/mfrac-linethickness-2-ref.xhtml new file mode 100644 index 000000000..941edfcd1 --- /dev/null +++ b/layout/reftests/mathml/mfrac-linethickness-2-ref.xhtml @@ -0,0 +1,10 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="200%"> + <mi>x</mi> + <mn>2</mn> + </mfrac> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mfrac-linethickness-2.xhtml b/layout/reftests/mathml/mfrac-linethickness-2.xhtml new file mode 100644 index 000000000..2d9026f8d --- /dev/null +++ b/layout/reftests/mathml/mfrac-linethickness-2.xhtml @@ -0,0 +1,10 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="2"> + <mi>x</mi> + <mn>2</mn> + </mfrac> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mfrac-linethickness-3-ref.xhtml b/layout/reftests/mathml/mfrac-linethickness-3-ref.xhtml new file mode 100644 index 000000000..63198a66f --- /dev/null +++ b/layout/reftests/mathml/mfrac-linethickness-3-ref.xhtml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac> + <mi>x</mi> + <mn>2</mn> + </mfrac> + <mo>=</mo> + <mfrac> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac> + <mi>a</mi> + <mi>b</mi> + </mfrac> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mfrac-linethickness-3.xhtml b/layout/reftests/mathml/mfrac-linethickness-3.xhtml new file mode 100644 index 000000000..7a565cfe0 --- /dev/null +++ b/layout/reftests/mathml/mfrac-linethickness-3.xhtml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac linethickness="2km"> + <mi>x</mi> + <mn>2</mn> + </mfrac> + <mo>=</mo> + <mfrac linethickness = "cat"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac linethickness = "-2px"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + <mo>=</mo> + <mfrac linethickness="1"> + <mi>a</mi> + <mi>b</mi> + </mfrac> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mi-mathvariant-1-ref.xhtml b/layout/reftests/mathml/mi-mathvariant-1-ref.xhtml new file mode 100644 index 000000000..36a21e79e --- /dev/null +++ b/layout/reftests/mathml/mi-mathvariant-1-ref.xhtml @@ -0,0 +1,9 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mi mathvariant="normal">cos</mi> + <mo>⁡</mo> + <mi mathvariant="italic">x</mi> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mi-mathvariant-1.xhtml b/layout/reftests/mathml/mi-mathvariant-1.xhtml new file mode 100644 index 000000000..d85c2c4b2 --- /dev/null +++ b/layout/reftests/mathml/mi-mathvariant-1.xhtml @@ -0,0 +1,9 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mi>cos</mi> + <mo>⁡</mo> + <mi>x</mi> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mi-mathvariant-2-ref.xhtml b/layout/reftests/mathml/mi-mathvariant-2-ref.xhtml new file mode 100644 index 000000000..edee2a9b4 --- /dev/null +++ b/layout/reftests/mathml/mi-mathvariant-2-ref.xhtml @@ -0,0 +1,17 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <!-- infinity has no corresponding mathematical italic alphanumeric + character and so should not be rendered with italic style. + bug 413115. + --> + <mi mathvariant="normal">∞</mi> + <!-- PLANCK CONSTANT already has italic style, and shouldn't have + additional slant applied --> + <mi mathvariant="normal">ℎ</mi> + <!-- mathvariant on single-char mi (the mathvariant property should + override the default italicness)--> + <mi>𝔅</mi> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mi-mathvariant-2.xhtml b/layout/reftests/mathml/mi-mathvariant-2.xhtml new file mode 100644 index 000000000..ae1db6e1e --- /dev/null +++ b/layout/reftests/mathml/mi-mathvariant-2.xhtml @@ -0,0 +1,9 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mi>∞</mi> + <mi>ℎ</mi> + <mi mathvariant="fraktur">B</mi> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/mi-mathvariant-3-ref.html b/layout/reftests/mathml/mi-mathvariant-3-ref.html new file mode 100644 index 000000000..27a58b9ba --- /dev/null +++ b/layout/reftests/mathml/mi-mathvariant-3-ref.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <head> + <title>Mathematica Alphanumeric Italic</title> + <meta charset="utf-8"/> + </head> + <body> + + <math><mstyle mathbackground="red"><mphantom><mi>X</mi></mphantom></mstyle></math> + + </body> +</html> diff --git a/layout/reftests/mathml/mi-mathvariant-3.html b/layout/reftests/mathml/mi-mathvariant-3.html new file mode 100644 index 000000000..aa503da9a --- /dev/null +++ b/layout/reftests/mathml/mi-mathvariant-3.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>Mathematica Alphanumeric Italic</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- The lowercase italic o should be smaller than the uppercase italic X + (this will fail if missing char boxes are used) --> + <math><mstyle mathbackground="red"><mphantom><mi>o</mi></mphantom></mstyle></math> + + </body> +</html> diff --git a/layout/reftests/mathml/mirror-op-1-ref.html b/layout/reftests/mathml/mirror-op-1-ref.html new file mode 100644 index 000000000..10ea93669 --- /dev/null +++ b/layout/reftests/mathml/mirror-op-1-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head><title>Test mirror op</title></head> + <style type="text/css"> + mo { + -moz-transform: scaleX(-1.0); + } + </style> + <body> + + <p><math><mo>(</mo></math></p> + <p><math><mo>)</mo></math></p> + <p><math><mo>[</mo></math></p> + <p><math><mo>]</mo></math></p> + <p><math><mo>{</mo></math></p> + <p><math><mo>}</mo></math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/mirror-op-1.html b/layout/reftests/mathml/mirror-op-1.html new file mode 100644 index 000000000..bb59e16c2 --- /dev/null +++ b/layout/reftests/mathml/mirror-op-1.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head><title>Test mirror op</title></head> + <body> + + <p><math dir="rtl"><mo>(</mo></math></p> + <p><math dir="rtl"><mo>)</mo></math></p> + <p><math dir="rtl"><mo>[</mo></math></p> + <p><math dir="rtl"><mo>]</mo></math></p> + <p><math dir="rtl"><mo>{</mo></math></p> + <p><math dir="rtl"><mo>}</mo></math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/mirror-op-2-ref.html b/layout/reftests/mathml/mirror-op-2-ref.html new file mode 100644 index 000000000..c67710cca --- /dev/null +++ b/layout/reftests/mathml/mirror-op-2-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <head><title>Test mirror op</title></head> + <body> + + <p><math display="block"><mo>∑</mo></math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/mirror-op-2.html b/layout/reftests/mathml/mirror-op-2.html new file mode 100644 index 000000000..5db6819cf --- /dev/null +++ b/layout/reftests/mathml/mirror-op-2.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <head><title>Test mirror op</title></head> + <body> + + <p><math display="block" dir="rtl"><mo>∑</mo></math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/mirror-op-3-ref.html b/layout/reftests/mathml/mirror-op-3-ref.html new file mode 100644 index 000000000..fc3a183ef --- /dev/null +++ b/layout/reftests/mathml/mirror-op-3-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <head><title>Test mirror op</title></head> + <body> + + <p><math display="block"><mo>√</mo></math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/mirror-op-3.html b/layout/reftests/mathml/mirror-op-3.html new file mode 100644 index 000000000..501af1092 --- /dev/null +++ b/layout/reftests/mathml/mirror-op-3.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <head><title>Test mirror op</title></head> + <body> + + <p><math display="block" dir="rtl"><mo>√</mo></math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/mirror-op-4-ref.html b/layout/reftests/mathml/mirror-op-4-ref.html new file mode 100644 index 000000000..6c39a47a3 --- /dev/null +++ b/layout/reftests/mathml/mirror-op-4-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <head><title>Test mirror op</title></head> + <body> + + <p><math display="block"><mo>∫</mo></math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/mirror-op-4.html b/layout/reftests/mathml/mirror-op-4.html new file mode 100644 index 000000000..ba1acf89f --- /dev/null +++ b/layout/reftests/mathml/mirror-op-4.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + <head><title>Test mirror op</title></head> + <body> + + <p><math display="block" dir="rtl"><mo>∫</mo></math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/mmultiscript-align-ref.html b/layout/reftests/mathml/mmultiscript-align-ref.html new file mode 100644 index 000000000..337852837 --- /dev/null +++ b/layout/reftests/mathml/mmultiscript-align-ref.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html> + <head> + <title>alignment of mmultiscript sub/superscripts</title> + </head> + + <body> + <math> + <mmultiscripts> + <mspace width="50px" height="50px" mathbackground="red"/> + <mrow> + <mspace width="50px" height="10px" mathbackground="blue"/> + <mspace width="50px" height="10px"/> + </mrow> + <mspace width="100px" height="10px" mathbackground="green"/> + <mprescripts/> + <mrow> + <mspace width="50px" height="10px"/> + <mspace width="50px" height="10px" mathbackground="blue"/> + </mrow> + <mspace width="100px" height="10px" mathbackground="green"/> + </mmultiscripts> + </math> + <br/> + <math> + <mmultiscripts> + <mspace width="50px" height="50px" mathbackground="red"/> + <mspace width="100px" height="10px" mathbackground="green"/> + <mrow> + <mspace width="50px" height="10px" mathbackground="blue"/> + <mspace width="50px" height="10px"/> + </mrow> + <mprescripts/> + <mspace width="100px" height="10px" mathbackground="green"/> + <mrow> + <mspace width="50px" height="10px"/> + <mspace width="50px" height="10px" mathbackground="blue"/> + </mrow> + </mmultiscripts> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mmultiscript-align.html b/layout/reftests/mathml/mmultiscript-align.html new file mode 100644 index 000000000..44fb713a3 --- /dev/null +++ b/layout/reftests/mathml/mmultiscript-align.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html> + <head> + <title>alignment of mmultiscript sub/superscripts</title> + </head> + + <body> + <math> + <mmultiscripts> + <mspace width="50px" height="50px" mathbackground="red"/> + <mrow> + <mspace width="50px" height="10px" mathbackground="blue"/> + </mrow> + <mspace width="100px" height="10px" mathbackground="green"/> + <mprescripts/> + <mrow> + <mspace width="50px" height="10px" mathbackground="blue"/> + </mrow> + <mspace width="100px" height="10px" mathbackground="green"/> + </mmultiscripts> + </math> + <br/> + <math> + <mmultiscripts> + <mspace width="50px" height="50px" mathbackground="red"/> + <mspace width="100px" height="10px" mathbackground="green"/> + <mrow> + <mspace width="50px" height="10px" mathbackground="blue"/> + </mrow> + <mprescripts/> + <mspace width="100px" height="10px" mathbackground="green"/> + <mrow> + <mspace width="50px" height="10px" mathbackground="blue"/> + </mrow> + </mmultiscripts> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mo-accent-dynamic-ref.html b/layout/reftests/mathml/mo-accent-dynamic-ref.html new file mode 100644 index 000000000..c25181d14 --- /dev/null +++ b/layout/reftests/mathml/mo-accent-dynamic-ref.html @@ -0,0 +1,12 @@ +<!DOCTYPE html>
+ <html>
+ <head>
+ <title>mo@accent</title>
+ <meta charset="utf-8"/>
+ </head>
+ <body>
+ <math>
+ <munderover><mtext>X</mtext><mo accent="true">O</mo><mo>O</mo></munderover>
+ </math>
+ </body>
+</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/mo-accent-dynamic.html b/layout/reftests/mathml/mo-accent-dynamic.html new file mode 100644 index 000000000..f66548500 --- /dev/null +++ b/layout/reftests/mathml/mo-accent-dynamic.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait">
+ <head>
+ <title>mo@accent</title>
+ <meta charset="utf-8"/>
+ <script type="text/javascript">
+ function doTest() {
+ document.getElementById('mathOperator').setAttribute('accent', 'true');
+ document.documentElement.removeAttribute("class");
+ }
+ window.addEventListener("MozReftestInvalidate",doTest, false);
+ </script>
+ </head>
+ <body>
+ <math>
+ <munderover><mtext>X</mtext><mo id="mathOperator">O</mo><mo>O</mo></munderover>
+ </math>
+ </body>
+</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/mo-glyph-size-ref.html b/layout/reftests/mathml/mo-glyph-size-ref.html new file mode 100644 index 000000000..e4dd43747 --- /dev/null +++ b/layout/reftests/mathml/mo-glyph-size-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +</head> +<body> +<!-- Bug 1219068 --> + +<div id="hider" + style="position:absolute; top:0; left:0; background-color:green; + height:1em; width:100%; z-index:1; padding-top:5px; + padding-bottom:5px;" /> +</body> +</html> diff --git a/layout/reftests/mathml/mo-glyph-size.html b/layout/reftests/mathml/mo-glyph-size.html new file mode 100644 index 000000000..a7f1a1ab6 --- /dev/null +++ b/layout/reftests/mathml/mo-glyph-size.html @@ -0,0 +1,50 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<head> +<meta charset="UTF-8"> +</head> +<body> +<!-- Bug 1219068 --> + +<math style="position:absolute; top: 0; font-size:1em; z-index: 0;" display="block"> +<mrow> + <mo>|</mo> + <mrow> + <mi>f</mi> + <mrow> + <mn>(</mn> + <mi>x</mi> + <mn>)</mn> + </mrow> + <mn>-</mn> + <mrow> + <mi>f</mi> + <mrow> + <mn>(</mn> + <msub> + <mi>x</mi> + <mn>0</mn> + </msub> + <mn>)</mn> + </mrow> + </mrow> + </mrow> + <mo>|</mo> +</mrow> +</math> +<div id="hider" + style="position:absolute; top:0; left:0; background-color:green; + height:1em; width:100%; z-index:1; padding-top:5px; + padding-bottom:5px; visibility:hidden" /> + <script> + function obscureMathML() { + var hider = document.getElementById("hider"); + hider.style.visibility="visible"; + // The math should now be completely obscured + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", obscureMathML, false); + </script> +</body> +</html> diff --git a/layout/reftests/mathml/mo-invisibleoperators-2-ref.html b/layout/reftests/mathml/mo-invisibleoperators-2-ref.html new file mode 100644 index 000000000..152c84cd9 --- /dev/null +++ b/layout/reftests/mathml/mo-invisibleoperators-2-ref.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> + <math> + <mo>1</mo> + </math> + <p> + <math> + <mo>2</mo> + </math> + <p> + <math> + <mo>3</mo> + </math> + <p> + <math> + <mo>4</mo> + </math> + <p> + <table> + <tr> + <td style="border: 1px solid;"> + <math> + <mo>x</mo> + </math> + </td> + </tr> + </table> +</html> diff --git a/layout/reftests/mathml/mo-invisibleoperators-2.html b/layout/reftests/mathml/mo-invisibleoperators-2.html new file mode 100644 index 000000000..a8807d3ec --- /dev/null +++ b/layout/reftests/mathml/mo-invisibleoperators-2.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <body> + <math> + <mo id="mo1">⁡<!-- FUNCTION APPLICATION --></mo> + </math> + <p> + <math> + <mo id="mo2">⁢<!-- INVISIBLE TIMES --></mo> + </math> + <p> + <math> + <mo id="mo3">⁣<!-- INVISIBLE SEPARATOR --></mo> + </math> + <p> + <math> + <mo id="mo4">⁤<!-- INVISIBLE PLUS --></mo> + </math> + <p> + <!-- Test preferred width after dynamic change--> + <table> + <tr> + <td style="border: 1px solid;"> + <math> + <mo id="mo5">⁡</mo> + </math> + </td> + </tr> + </table> + <script type="text/javascript"> + function doTest() { + document.getElementById('mo1').firstChild.data = '1'; + document.getElementById('mo2').firstChild.data = '2'; + document.getElementById('mo3').firstChild.data = '3'; + document.getElementById('mo4').firstChild.data = '4'; + document.getElementById('mo5').firstChild.data = 'x'; + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </body> +</html> diff --git a/layout/reftests/mathml/mo-invisibleoperators-ref.html b/layout/reftests/mathml/mo-invisibleoperators-ref.html new file mode 100644 index 000000000..2b7d9c6ad --- /dev/null +++ b/layout/reftests/mathml/mo-invisibleoperators-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <math> + <mrow> + <mn>1</mn> + <mn>2</mn> + <mn>3</mn> + <mn>4</mn> + <mn>5</mn> + <mspace height="2em" width="0.1em"></mspace> + </mrow> + </math> +</html> diff --git a/layout/reftests/mathml/mo-invisibleoperators.html b/layout/reftests/mathml/mo-invisibleoperators.html new file mode 100644 index 000000000..6937dafc8 --- /dev/null +++ b/layout/reftests/mathml/mo-invisibleoperators.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> + <math> + <mrow> + <mn>1</mn> + <mo>⁡<!-- FUNCTION APPLICATION --></mo> + <mn>2</mn> + <mo>⁢<!-- INVISIBLE TIMES --></mo> + <mn>3</mn> + <mo>⁣<!-- INVISIBLE SEPARATOR --></mo> + <mn>4</mn> + <mo>⁤<!-- INVISIBLE PLUS --></mo> + <mn>5</mn> + <!-- Hack. The invisible operators may not belong to the same font as + the numbers, so they may have different heights. The mspace + compensates for this by ensuring the height of the mrow does not + depend on character height --> + <mspace height="2em" width="0.1em"></mspace> + </mrow> + </math> + <p> + <!-- Should be invisible --> + <math> + <mo style="background: red; color: blue;">⁡</mo> + </math> +</html> diff --git a/layout/reftests/mathml/mo-lspace-rspace-2-ref.html b/layout/reftests/mathml/mo-lspace-rspace-2-ref.html new file mode 100644 index 000000000..d33d2f0d7 --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-2-ref.html @@ -0,0 +1,379 @@ +<!DOCTYPE html> +<html> + <head> + <title>mo-lspace-rspace</title> + <style type="text/css"> + mo,td { + background-color: red; + } + msub, mfrac, msup, msubsup, mmultiscripts, + mover, munder, munderover, mpadded, merror + { + background-color: blue + } + math[display] + { + background-color: blue + } + </style> + </head> + <body> + + <p> + No lspace or rspace added: + </p> + <p> + <math> + <mrow> + <mo lspace="0" rspace="0">%</mo> + </mrow> + </math> + <math> + <mfrac> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + </math> + <math> + <msqrt> + <mo lspace="0" rspace="0">%</mo> + </msqrt> + </math> + <math> + <mroot> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mroot> + </math> + <math> + <mstyle> + <mo lspace="0" rspace="0">%</mo> + </mstyle> + </math> + </p> + + <p> + <table> + <tr> + <td> + <math> + <mphantom> + <mo lspace="0" rspace="0">%</mo> + </mphantom> + </math> + </td> + </tr> + </table> + </p> + + <p> + <math> + <menclose notation="circle"> + <mo lspace="0" rspace="0">%</mo> + </menclose> + </math> + <math> + <msub> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msub> + </math> + <math> + <msup> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msup> + </math> + <math> + <msubsup> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msubsup> + </math> + <math> + <munder> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munder> + </math> + <math> + <mover> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mover> + </math> + <math> + <munderover> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munderover> + </math> + </p> + + <p> + <math> + <mmultiscripts> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mprescripts/> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mmultiscripts> + </math> + <math> + <mtable> + <mtr> + <mtd> + <mo lspace="0" rspace="0">%</mo> + </mtd> + </mtr> + </mtable> + </math> + <math> + <mo lspace="0" rspace="0">%</mo> + </math> + <math> + <msub> + <mrow> + <mo lspace="0" rspace="0">%</mo> + </mrow> + <mo lspace="0" rspace="0">%</mo> + </msub> + </math> + </p> + + <p> + <math> + <msub> + <msub> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msub> + <mo lspace="0" rspace="0">%</mo> + </msub> + </math> + <math> + <munder> + <munder> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munder> + <mo lspace="0" rspace="0">%</mo> + </munder> + </math> + <math> + <mfrac> + <mfrac> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + </math> + </p> + + <p> + <math> + <menclose notation="circle"> + <mo lspace="0" rspace="0">%</mo> + </menclose> + <menclose notation="circle"> + <mo lspace="0" rspace="0">%</mo> + </menclose> + <mroot> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mroot> + </math> + <math> + <mpadded height="+1em"> + <mo lspace="0" rspace="0">%</mo> + </mpadded> + </math> + <math> + <merror> + <mo lspace="0" rspace="0">%</mo> + </merror> + </math> + </p> + + <math display="block"> + <mo lspace="0" rspace="0">%</mo> + </math> + + <p> + lspace and rspace rendered as appropriate + </p> + <p> + <math> + <mrow> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mrow> + <mfrac> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + <msqrt> + <mo lspace="0" rspace="0">%</mo> + </msqrt> + <mstyle> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mstyle> + </math> + </p> + + <p> + <table> + <tr> + <td> + <math> + <mphantom> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mphantom> + </math> + </td> + </tr> + </table> + </p> + + <p> + <math> + <mfenced> + <!-- always treated as in an mrow with > 1 child --> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mfenced> + </math> + <math> + <mfenced> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mfenced> + <menclose notation="circle"> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </menclose> + <msub> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msub> + <msup> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msup> + <msubsup> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msubsup> + <munder> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munder> + <mover> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mover> + <munderover> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munderover> + </math> + </p> + + <p> + <math> + <mmultiscripts> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + <mprescripts/> + <mo lspace="0" rspace="0">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mmultiscripts> + <mtable> + <mtr> + <mtd> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mtd> + </mtr> + </mtable> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <msub> + <mrow> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mrow> + <mo lspace="0" rspace="0">%</mo> + </msub> + <msub> + <mrow> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mrow> + <mo lspace="0" rspace="0">%</mo> + </msub> + </math> + </p> + + <p> + <math> + <msub> + <msub> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </msub> + <mo lspace="0" rspace="0">%</mo> + </msub> + <munder> + <munder> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </munder> + <mo lspace="0" rspace="0">%</mo> + </munder> + <mfrac> + <mfrac> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + <mo lspace="0" rspace="0">%</mo> + </mfrac> + </math> + </p> + + <p> + <math> + <mrow> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mpadded height="+1em"> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mpadded> + </mrow> + </math> + <math> + <mpadded height="+1em"> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </mpadded> + </math> + <math> + <merror> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </merror> + </math> + </p> + + <math display="block"> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mo-lspace-rspace-2.html b/layout/reftests/mathml/mo-lspace-rspace-2.html new file mode 100644 index 000000000..6f0fc5271 --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-2.html @@ -0,0 +1,377 @@ +<!DOCTYPE html> +<html> + <head> + <title>mo-lspace-rspace</title> + <style type="text/css"> + mo,td { + background-color: red; + } + msub, mfrac, msup, msubsup, mmultiscripts, + mover, munder, munderover, mpadded, merror + { + background-color: blue + } + math[display] + { + background-color: blue + } + </style> + </head> + <body> + + <p> + No lspace or rspace added: + </p> + <p> + <math> + <mrow> + <mo>%</mo> + </mrow> + </math> + <math> + <mfrac> + <mo>%</mo> + <mo>%</mo> + </mfrac> + </math> + <math> + <msqrt> + <mo>%</mo> + </msqrt> + </math> + <math> + <mroot> + <mo>%</mo> + <mo>%</mo> + </mroot> + </math> + <math> + <mstyle> + <mo>%</mo> + </mstyle> + </math> + </p> + + <p> + <table> + <tr> + <td> + <math> + <mphantom> + <mo>%</mo> + </mphantom> + </math> + </td> + </tr> + </table> + </p> + + <p> + <math> + <menclose notation="circle"> + <mo>%</mo> + </menclose> + </math> + <math> + <msub> + <mo>%</mo> + <mo>%</mo> + </msub> + </math> + <math> + <msup> + <mo>%</mo> + <mo>%</mo> + </msup> + </math> + <math> + <msubsup> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + </msubsup> + </math> + <math> + <munder> + <mo>%</mo> + <mo>%</mo> + </munder> + </math> + <math> + <mover> + <mo>%</mo> + <mo>%</mo> + </mover> + </math> + <math> + <munderover> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + </munderover> + </math> + </p> + + <p> + <math> + <mmultiscripts> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + <mprescripts/> + <mo>%</mo> + <mo>%</mo> + </mmultiscripts> + </math> + <math> + <mtable> + <mtr> + <mtd> + <mo>%</mo> + </mtd> + </mtr> + </mtable> + </math> + <math> + <mo>%</mo> + </math> + <math> + <msub> + <mrow> + <mo>%</mo> + </mrow> + <mo>%</mo> + </msub> + </math> + </p> + + <p> + <math> + <msub> + <msub> + <mo>%</mo> + <mo>%</mo> + </msub> + <mo>%</mo> + </msub> + </math> + <math> + <munder> + <munder> + <mo>%</mo> + <mo>%</mo> + </munder> + <mo>%</mo> + </munder> + </math> + <math> + <mfrac> + <mfrac> + <mo>%</mo> + <mo>%</mo> + </mfrac> + <mo>%</mo> + </mfrac> + </math> + </p> + <p> + <math> + <menclose notation="circle"> + <mo>%</mo> + </menclose> + <menclose notation="circle"> + <mo>%</mo> + </menclose> + <mroot> + <mo>%</mo> + <mo>%</mo> + </mroot> + </math> + <math> + <mpadded height="+1em"> + <mo>%</mo> + </mpadded> + </math> + <math> + <merror> + <mo>%</mo> + </merror> + </math> + </p> + + <math display="block"> + <mo>%</mo> + </math> + + <p> + lspace and rspace rendered as appropriate + </p> + <p> + <math> + <mrow> + <mo>%</mo> + </mrow> + <mfrac> + <mo>%</mo> + <mo>%</mo> + </mfrac> + <msqrt> + <mo>%</mo> + </msqrt> + <mstyle> + <mo>%</mo> + </mstyle> + </math> + </p> + + <p> + <table> + <tr> + <td> + <math> + <mphantom> + <mo>%</mo> + <mo>%</mo> + </mphantom> + </math> + </td> + </tr> + </table> + </p> + + <p> + <math> + <mfenced> + <mo>%</mo> + </mfenced> + </math> + <math> + <mfenced> + <mo>%</mo> + <mo>%</mo> + </mfenced> + <menclose notation="circle"> + <mo>%</mo> + <mo>%</mo> + </menclose> + <msub> + <mo>%</mo> + <mo>%</mo> + </msub> + <msup> + <mo>%</mo> + <mo>%</mo> + </msup> + <msubsup> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + </msubsup> + <munder> + <mo>%</mo> + <mo>%</mo> + </munder> + <mover> + <mo>%</mo> + <mo>%</mo> + </mover> + <munderover> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + </munderover> + </math> + </p> + + <p> + <math> + <mmultiscripts> + <mo>%</mo> + <mo>%</mo> + <mo>%</mo> + <mprescripts/> + <mo>%</mo> + <mo>%</mo> + </mmultiscripts> + <mtable> + <mtr> + <mtd> + <mo>%</mo> + <mo>%</mo> + </mtd> + </mtr> + </mtable> + <mo>%</mo> + <msub> + <mrow> + <mo>%</mo> + </mrow> + <mo>%</mo> + </msub> + <msub> + <mrow> + <mo>%</mo> + <mo>%</mo> + </mrow> + <mo>%</mo> + </msub> + </math> + </p> + + <p> + <math> + <msub> + <msub> + <mo>%</mo> + <mo>%</mo> + </msub> + <mo>%</mo> + </msub> + <munder> + <munder> + <mo>%</mo> + <mo>%</mo> + </munder> + <mo>%</mo> + </munder> + <mfrac> + <mfrac> + <mo>%</mo> + <mo>%</mo> + </mfrac> + <mo>%</mo> + </mfrac> + </math> + </p> + + <p> + <math> + <mrow> + <mo>%</mo> + <mo>%</mo> + <mpadded height="+1em"> + <mo>%</mo> + </mpadded> + </mrow> + </math> + <math> + <mpadded height="+1em"> + <mo>%</mo> + <mo>%</mo> + </mpadded> + </math> + <math> + <merror> + <mo>%</mo> + <mo>%</mo> + </merror> + </math> + </p> + + <math display="block"> + <mo>%</mo> + <mo>%</mo> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/mo-lspace-rspace-3-ref.html b/layout/reftests/mathml/mo-lspace-rspace-3-ref.html new file mode 100644 index 000000000..7f769cb3f --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-3-ref.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html> + <body> + <p> + <math> + <mo id="mo1" LSPACE="3em" rspace="0em">%</mo> + </math> + </p> + <p> + <math> + <mo id="mo2" lspace="0em" rspace="0em">%</mo> + </math> + </p> + <p> + <math> + <mo id="mo3" lspace="3em" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </math> + </p> + <p> + <math> + <mo id="mo4" lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </math> + </p> + <p> + <math> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + <mo lspace="thinmathspace" rspace="thinmathspace">%</mo> + </math> + </p> + <p> + <math> + <mo lspace="0em" rspace="0em">%</mo> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/mo-lspace-rspace-3.html b/layout/reftests/mathml/mo-lspace-rspace-3.html new file mode 100644 index 000000000..8b25d053f --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-3.html @@ -0,0 +1,57 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <body> + <p> + <math> + <mo id="mo1">%</mo> + </math> + </p> + <p> + <math> + <mo id="mo2" lspace="3em">%</mo> + </math> + </p> + <p> + <math> + <mo id="mo3">%</mo> + <mo>%</mo> + </math> + </p> + <p> + <math> + <mo id="mo4" lspace="3em">%</mo> + <mo >%</mo> + </math> + </p> + <p> + <math id="math1"> + <mo>%</mo> + </math> + </p> + <p> + <math id="math2"> + <mo>%</mo> + <mo id="mo5">%</mo> + </math> + </p> + <script type="text/javascript"> + function doTest() { + // Add and remove lspace + document.getElementById("mo1").setAttribute("lspace", "3em"); + document.getElementById("mo2").removeAttribute("lspace"); + // and again but with an inferred mrow + document.getElementById("mo3").setAttribute("lspace", "3em"); + document.getElementById("mo4").removeAttribute("lspace"); + + // Change to/from inferred mrow + var mo1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mo"); + mo1.innerHTML = "%"; + document.getElementById("math1").appendChild(mo1); + document.getElementById("math2").removeChild(document.getElementById("mo5")); + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </body> +</html> diff --git a/layout/reftests/mathml/mo-lspace-rspace-4-ref.html b/layout/reftests/mathml/mo-lspace-rspace-4-ref.html new file mode 100644 index 000000000..fa60a182f --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-4-ref.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html> + <body> + <p> + <math> + <mtext>_</mtext> + <mrow> + <mfrac> + <mo lspace="1em" rspace="2em">_</mo> + <mtext>_</mtext> + </mfrac> + </mrow> + <mtext>_</mtext> + </math> + </p> + + <p> + <math> + <mtext>_</mtext> + <mrow> + <mfrac bevelled="true"> + <mo lspace="1em" rspace="2em">_</mo> + <mtext>_</mtext> + </mfrac> + </mrow> + <mtext>_</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/mo-lspace-rspace-4.html b/layout/reftests/mathml/mo-lspace-rspace-4.html new file mode 100644 index 000000000..6da529c2f --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-4.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html> + <body> + <p> + <math> + <mtext>_</mtext> + <mfrac> + <mo lspace="1em" rspace="2em">_</mo> + <mtext>_</mtext> + </mfrac> + <mtext>_</mtext> + </math> + </p> + + <p> + <math> + <mtext>_</mtext> + <mfrac bevelled="true"> + <mo lspace="1em" rspace="2em">_</mo> + <mtext>_</mtext> + </mfrac> + <mtext>_</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/mo-lspace-rspace-ref.html b/layout/reftests/mathml/mo-lspace-rspace-ref.html new file mode 100644 index 000000000..e8a409610 --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace-ref.html @@ -0,0 +1,43 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mo-lspace-rspace</title> + </head> + + <body> + + <p> + <!-- not in the operator dictionary --> + <math> + <mtext>_</mtext> + <mspace width="thickmathspace" height="0" depth="0"></mspace> + <mtext>MO</mtext> + <mspace width="thickmathspace" height="0" depth="0"></mspace> + <mtext>_</mtext> + </math> + </p> + + <p> + <!-- operator.\u223F.infix = lspace:3 rspace:3 # sine wave --> + <math> + <mtext>_</mtext> + <mspace width="thinmathspace" height="0" depth="0"></mspace> + <mtext>∿</mtext> + <mspace width="thinmathspace" height="0" depth="0"></mspace> + <mtext>_</mtext> + </math> + </p> + + <p> + <!-- Invisible operator --> + <math> + <mtext>_</mtext> + <mtext>⁡</mtext> + <mtext>_</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/mo-lspace-rspace.html b/layout/reftests/mathml/mo-lspace-rspace.html new file mode 100644 index 000000000..68fd59b37 --- /dev/null +++ b/layout/reftests/mathml/mo-lspace-rspace.html @@ -0,0 +1,39 @@ +<!-- -*- mode: HTML; tab-width: 2; indent-tabs-mode: nil; -*- --> +<!-- vim: set tabstop=2 expandtab shiftwidth=2 textwidth=80: --> +<!DOCTYPE html> +<html> + <head> + <title>mo-lspace-rspace</title> + </head> + + <body> + + <p> + <!-- not in the operator dictionary --> + <math> + <mtext>_</mtext> + <mo>MO</mo> + <mtext>_</mtext> + </math> + </p> + + <p> + <!-- operator.\u223F.infix = lspace:3 rspace:3 # sine wave --> + <math> + <mtext>_</mtext> + <mo>∿</mo> + <mtext>_</mtext> + </math> + </p> + + <p> + <!-- Invisible operator --> + <math> + <mtext>_</mtext> + <mo>⁡</mo> + <mtext>_</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/mo-movablelimits-dynamic-ref.html b/layout/reftests/mathml/mo-movablelimits-dynamic-ref.html new file mode 100644 index 000000000..41e80c0d4 --- /dev/null +++ b/layout/reftests/mathml/mo-movablelimits-dynamic-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html>
+ <head>
+ <title>mo@movablelimits</title>
+ <meta charset="utf-8"/>
+ </head>
+ <body>
+ <math>
+ <munder>
+ <mo>∑</mo>
+ <mi>x</mi>
+ </munder>
+ </math>
+ </body>
+ </html>
\ No newline at end of file diff --git a/layout/reftests/mathml/mo-movablelimits-dynamic.html b/layout/reftests/mathml/mo-movablelimits-dynamic.html new file mode 100644 index 000000000..1b3919e17 --- /dev/null +++ b/layout/reftests/mathml/mo-movablelimits-dynamic.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html class="reftest-wait">
+ <head>
+ <title>mo@movablelimits</title>
+ <meta charset="utf-8"/>
+ <script type="text/javascript">
+ function doTest() {
+ document.getElementById('a').removeAttribute('movablelimits');
+ document.documentElement.removeAttribute("class");
+ }
+ window.addEventListener("MozReftestInvalidate",doTest, false);
+ </script>
+ </head>
+ <body>
+ <math>
+ <munder>
+ <mo id="a" movablelimits="false">∑</mo>
+ <mi>x</mi>
+ </munder>
+ </math>
+ </body>
+</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/mpadded-1-2-ref.html b/layout/reftests/mathml/mpadded-1-2-ref.html new file mode 100644 index 000000000..f92891ba4 --- /dev/null +++ b/layout/reftests/mathml/mpadded-1-2-ref.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + <style type="text/css"> + div#bigsquare { + position: absolute; + width: 100px; + height: 100px; + background: blue; + } + + div#smallsquare { + position:absolute; + width: 20px; + height: 20px; + left: 20px; + top: 60px; + background: red; + } + /*left = lspace = 20px; + top = heightBig - voffset - heightSmall; + = 50 + 20 - 10 + = 60px */ + </style> + </head> + <body> + <div id="bigsquare"> + <div id="smallsquare"> + </div> + </div> + </body> +<html> diff --git a/layout/reftests/mathml/mpadded-1-2.html b/layout/reftests/mathml/mpadded-1-2.html new file mode 100644 index 000000000..1c797f913 --- /dev/null +++ b/layout/reftests/mathml/mpadded-1-2.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <mpadded mathbackground="blue" width="100px" height="50px" depth="50px" + lspace="20px" voffset="-20px"> + <mpadded mathbackground="red" width="20px" height="10px" + depth="10px"> + </mpadded> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-1-ref.html b/layout/reftests/mathml/mpadded-1-ref.html new file mode 100644 index 000000000..44d3afc65 --- /dev/null +++ b/layout/reftests/mathml/mpadded-1-ref.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + <style type="text/css"> + div#bigsquare { + position: absolute; + width: 100px; + height: 100px; + background: blue; + } + + div#smallsquare { + position:absolute; + width: 20px; + height: 20px; + left: 20px; + top: 10px; + background: red; + } + /*left = lspace = 20px; + top = heightBig - voffset - heightSmall; + = 50 - 30 - 10 + = 10px */ + </style> + </head> + <body> + <div id="bigsquare"> + <div id="smallsquare"> + </div> + </div> + </body> +<html> diff --git a/layout/reftests/mathml/mpadded-1.html b/layout/reftests/mathml/mpadded-1.html new file mode 100644 index 000000000..8b62cd0c7 --- /dev/null +++ b/layout/reftests/mathml/mpadded-1.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <mpadded mathbackground="blue" width="100px" height="50px" depth="50px" + lspace="20px" voffset="30px"> + <mpadded mathbackground="red" width="20px" height="10px" + depth="10px"> + </mpadded> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-2-ref.html b/layout/reftests/mathml/mpadded-2-ref.html new file mode 100644 index 000000000..82ab252d8 --- /dev/null +++ b/layout/reftests/mathml/mpadded-2-ref.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + <style type="text/css"> + div#square1 { + position: absolute; + width: 100px; + height: 100px; + background: blue; + } + + div#square2 { + position:absolute; + width: 20px; + height: 20px; + left: 10px; + top: 55px; + background: red; + } + /* left = lspace = 10; + top = heightBig - heightSmall - voffset; + top = 50 - 10 + 15 = 55px */ + </style> + </head> + <body> + <div id="square1"> + <div id="square2"> + </div> + </div> + </body> +<html> diff --git a/layout/reftests/mathml/mpadded-2.html b/layout/reftests/mathml/mpadded-2.html new file mode 100644 index 000000000..0fbac790c --- /dev/null +++ b/layout/reftests/mathml/mpadded-2.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <mpadded mathbackground="blue" width="100px" height="50px" depth="50px" + lspace="10px" voffset="-15px"> + <mpadded mathbackground="red" width="20px" height="10px" + depth="10px"> + </mpadded> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-3-ref.html b/layout/reftests/mathml/mpadded-3-ref.html new file mode 100644 index 000000000..5bb134d73 --- /dev/null +++ b/layout/reftests/mathml/mpadded-3-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded height depth</title> + <style type="text/css"> + div#bigsquare1 { + position: absolute; + width: 100px; + height: 50px; + background: blue; + } + + div#smallsquare1 { + position:absolute; + width: 20px; + height: 20px; + left: 0px; + top: 30px; + background: red; + } + /* left = lspace = 0; + top = heightBig - heightSmall - voffset; + = 50 - 10 - 10*/ + </style> + </head> + <body> + <div id="bigsquare1"> + <div id="smallsquare1"> + </div> + </div> + + <div id="bigsquare2"> + <div id="smallsquare2"> + </div> + </div> + </body> +<html> diff --git a/layout/reftests/mathml/mpadded-3.html b/layout/reftests/mathml/mpadded-3.html new file mode 100644 index 000000000..829467726 --- /dev/null +++ b/layout/reftests/mathml/mpadded-3.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded height depth</title> + </head> + <body> + <math> + <mpadded mathbackground="blue" width="100px" height="50px" depth="0px" + lspace="0px" voffset="10px"> + <mpadded mathbackground="red" width="20px" height="10px" + depth="10px"> + </mpadded> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-4-ref.html b/layout/reftests/mathml/mpadded-4-ref.html new file mode 100644 index 000000000..0ff6f8733 --- /dev/null +++ b/layout/reftests/mathml/mpadded-4-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <mpadded mathbackground="blue" width="100px" height="3height" depth="3depth" + lspace="0" voffset="10px"> + <mpadded mathbackground="red" width="20px" height="10px" + depth="10px"> + </mpadded> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-4.html b/layout/reftests/mathml/mpadded-4.html new file mode 100644 index 000000000..39618c83a --- /dev/null +++ b/layout/reftests/mathml/mpadded-4.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <!-- if lspace is used as a pseudounit, the lspace value is 0 --> + <mpadded mathbackground="blue" width="100px" height="3height" depth="3depth" + lspace="3lspace" voffset="10px"> + <mpadded mathbackground="red" width="20px" height="10px" + depth="10px"> + </mpadded> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-5-ref.html b/layout/reftests/mathml/mpadded-5-ref.html new file mode 100644 index 000000000..267ab95e6 --- /dev/null +++ b/layout/reftests/mathml/mpadded-5-ref.html @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + <style type="text/css"> + div#square1 { + position:absolute; + width: 20px; + height: 20px; + left: -25px; + top: 25px; + background: red; + } + div#square2 { + position: absolute; + width: 100px; + height: 100px; + left: 40px; + top:30px; + background: blue; + } + + div#square3 { + position:absolute; + width: 200px; + height: 200px; + background: green; + } + /* left = lspace = -25; + top = HeightBig - HeightSmall - voffsetSmall + = 50 - 10 - 15 = 25px */ + /* left = lsapce = 40px; + top = HeightVeryBig - HeightBig - voffsetBig + = 100 - 50 - 20 = 30px */ + </style> + </head> + <body> + <div id="square3"> + <div id="square2"> + <div id="square1"> + </div> + </div> + </div> + </body> +<html> diff --git a/layout/reftests/mathml/mpadded-5.html b/layout/reftests/mathml/mpadded-5.html new file mode 100644 index 000000000..f85087af3 --- /dev/null +++ b/layout/reftests/mathml/mpadded-5.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <mpadded mathbackground="green" width="200px" height="100px" depth="100px" + lspace="40px" voffset="20px"> + <mpadded mathbackground="blue" width="100px" height="50px" depth="50px" + lspace="-25px" voffset="15px"> + <mpadded mathbackground="red" width="20px" height="10px" + depth="10px"> + </mpadded> + </mpadded> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-6-ref.html b/layout/reftests/mathml/mpadded-6-ref.html new file mode 100644 index 000000000..ea5db6a31 --- /dev/null +++ b/layout/reftests/mathml/mpadded-6-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <mpadded mathbackground="blue" width="100px" height="100px" depth="0px" + lspace="20px" voffset="10px"> + <mpadded mathbackground="red" width="20px" height="10px" + depth="10px"> + </mpadded> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-6.html b/layout/reftests/mathml/mpadded-6.html new file mode 100644 index 000000000..d75eaf7c4 --- /dev/null +++ b/layout/reftests/mathml/mpadded-6.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <!--if height, depth or width is a negative value, 0px is the value applied --> + <mpadded mathbackground="blue" width="100px" height="100px" depth="-100px" + lspace="20px" voffset="10px"> + <mpadded mathbackground="red" width="20px" height="10px" + depth="10px"> + </mpadded> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-7-ref.html b/layout/reftests/mathml/mpadded-7-ref.html new file mode 100644 index 000000000..b01e7f4a6 --- /dev/null +++ b/layout/reftests/mathml/mpadded-7-ref.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <mpadded mathbackground="red" height="100height" depth="0"> + <mphantom> + <mtext style="font-family: monospace">X</mtext> + </mphantom> + </mpadded> + </math> + <math> + <mpadded mathbackground="red" height="100height" depth="0"> + <mphantom> + <mtext mathvariant="monospace">X</mtext> + </mphantom> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-7.html b/layout/reftests/mathml/mpadded-7.html new file mode 100644 index 000000000..bb9c5890e --- /dev/null +++ b/layout/reftests/mathml/mpadded-7.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <!--height in term of height should not depend on the characters--> + <mpadded mathbackground="red" height="100height" depth="0"> + <mphantom> + <mtext style="font-family: monospace">_</mtext> + </mphantom> + </mpadded> + </math> + <math> + <mpadded mathbackground="red" height="100height" depth="0"> + <mphantom> + <mtext mathvariant="monospace">i</mtext> + </mphantom> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-8-ref.html b/layout/reftests/mathml/mpadded-8-ref.html new file mode 100644 index 000000000..1b8963df6 --- /dev/null +++ b/layout/reftests/mathml/mpadded-8-ref.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <mpadded mathbackground="red" height="100width" depth="0"> + <mphantom> + <mtext style="font-family: monospace">X</mtext> + </mphantom> + </mpadded> + </math> + <math> + <mpadded mathbackground="red" height="100width" depth="0"> + <mphantom> + <mtext mathvariant="monospace">X</mtext> + </mphantom> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-8.html b/layout/reftests/mathml/mpadded-8.html new file mode 100644 index 000000000..274925906 --- /dev/null +++ b/layout/reftests/mathml/mpadded-8.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <!--height in term of width should not depend on the characters--> + <mpadded mathbackground="red" height="100width" depth="0"> + <mphantom> + <mtext style="font-family: monospace">|</mtext> + </mphantom> + </mpadded> + </math> + <math> + <mpadded mathbackground="red" height="100width" depth="0"> + <mphantom> + <mtext mathvariant="monospace">i</mtext> + </mphantom> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-9-ref.html b/layout/reftests/mathml/mpadded-9-ref.html new file mode 100644 index 000000000..9e5f3c6b8 --- /dev/null +++ b/layout/reftests/mathml/mpadded-9-ref.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <mpadded mathbackground="red" width="100width"> + <mphantom> + <mtext style="font-family: monospace">X</mtext> + </mphantom> + </mpadded> + </math> + <br> + <math> + <mpadded mathbackground="red" width="100width"> + <mphantom> + <mtext mathvariant="monospace">X</mtext> + </mphantom> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mpadded-9.html b/layout/reftests/mathml/mpadded-9.html new file mode 100644 index 000000000..8e8b92b0d --- /dev/null +++ b/layout/reftests/mathml/mpadded-9.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test mpadded</title> + </head> + <body> + <math> + <!--with fixed width, height + depth should not depend on the characters--> + <mpadded mathbackground="red" width="100width"> + <mphantom> + <mtext style="font-family: monospace">|</mtext> + </mphantom> + </mpadded> + </math> + <br> + <math> + <mpadded mathbackground="red" width="100width"> + <mphantom> + <mtext mathvariant="monospace">i</mtext> + </mphantom> + </mpadded> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/mphantom-1-ref.html b/layout/reftests/mathml/mphantom-1-ref.html new file mode 100644 index 000000000..2cc362f91 --- /dev/null +++ b/layout/reftests/mathml/mphantom-1-ref.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <head> + <title>mphantom</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- <mphantom> should be invisible. --> + + </body> +</html> diff --git a/layout/reftests/mathml/mphantom-1.html b/layout/reftests/mathml/mphantom-1.html new file mode 100644 index 000000000..85f40d808 --- /dev/null +++ b/layout/reftests/mathml/mphantom-1.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> + <head> + <title>mphantom</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test different kinds of content inside <mphantom>. --> + <p><math> + <mrow style="visibility: hidden"> + <msqrt> + <mfrac> + <mn>1</mn> + <mi>x</mi> + </mfrac> + </msqrt> + <mo>+</mo> + <menclose notation="box updiagonalstrike"> + <mover> + <mspace width="3em" height="1em" mathbackground="red"/> + <mo>‾</mo> + </mover> + </menclose> + </mrow> + </math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/mphantom-2-ref.html b/layout/reftests/mathml/mphantom-2-ref.html new file mode 100644 index 000000000..56f13e302 --- /dev/null +++ b/layout/reftests/mathml/mphantom-2-ref.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>mphantom</title> + <meta charset="utf-8"/> + </head> + <body> + + <p> + <math> + <mtext>LEFT</mtext> + <munderover> + <mspace width="4em" height="3em" depth="2em"/> + <mtext>BELOW</mtext> + <mtext>ABOVE</mtext> + </munderover> + <mtext>RIGHT</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/mphantom-2.html b/layout/reftests/mathml/mphantom-2.html new file mode 100644 index 000000000..898e84606 --- /dev/null +++ b/layout/reftests/mathml/mphantom-2.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <title>mphantom</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test that <mphantom> has the size of its content. --> + <p> + <math> + <mtext>LEFT</mtext> + <munderover> + <mphantom> + <mspace width="4em" height="3em" depth="2em" mathbackground="red"/> + </mphantom> + <mtext>BELOW</mtext> + <mtext>ABOVE</mtext> + </munderover> + <mtext>RIGHT</mtext> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/mspace-1-ref.html b/layout/reftests/mathml/mspace-1-ref.html new file mode 100644 index 000000000..3a9e9d4a8 --- /dev/null +++ b/layout/reftests/mathml/mspace-1-ref.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html> + +<head> + <title>mspace</title> +</head> + +<body> + + <div style="position: absolute; + top: 0; left: 0; + width: 50px; height: 6em; + background: red;"></div> + + <div style="position: absolute; + top: 2em; left: 50px; + width: 40px; height: 3em; + background: green;"></div> + + <div style="position: absolute; + top: 1em; left: 90px; + width: 30px; height: 3em; + background: blue;"></div> + +</body> + +</html> diff --git a/layout/reftests/mathml/mspace-1.html b/layout/reftests/mathml/mspace-1.html new file mode 100644 index 000000000..76d76a93c --- /dev/null +++ b/layout/reftests/mathml/mspace-1.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + +<head> + <title>mspace</title> +</head> + +<body> + + <math style="position: absolute; top: 0; left: 0; margin: 0; padding: 0;"> + <mspace width="50px" height="3em" depth="3em" mathbackground="red"/> + <mspace width="40px" height="1em" depth="2em" mathbackground="green"/> + <mspace width="30px" height="2em" depth="1em" mathbackground="blue"/> + </math> + +</body> + +</html> diff --git a/layout/reftests/mathml/mstyle-1-ref.xhtml b/layout/reftests/mathml/mstyle-1-ref.xhtml new file mode 100644 index 000000000..c8fdc36df --- /dev/null +++ b/layout/reftests/mathml/mstyle-1-ref.xhtml @@ -0,0 +1,123 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle</title> + <style type="text/css"> + table { width: 100%; border-collapse: collapse; } + td { border: solid black 1px; } + </style> +</head> + +<body> + +<table> + <tbody> + <tr> + <td>mfenced: open, close, separators </td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mfenced> + <mn>1</mn> + <mn>2</mn> + </mfenced> + </mstyle> + </math></td> + </tr> + <tr> + <td>menclose: notation</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <menclose> + <mtext>menclose</mtext> + </menclose> + </mstyle> + </math></td> + </tr> + <tr> + <td>mfrac: bevelled, linethickness</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mfrac> + <mi>a</mi> + <mi>b</mi> + </mfrac> + </mstyle> + </math></td> + </tr> + <tr> + <td>mfrac: numalign</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mfrac> + <mn>1</mn> + <mn>234</mn> + </mfrac> + </mstyle> + </math></td> + </tr> + <tr> + <td>mfrac: denomalign</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mfrac> + <mn>123</mn> + <mn>4</mn> + </mfrac> + </mstyle> + </math></td> + </tr> + <tr> + <td>mmultiscripts: subscriptshift, superscriptshift </td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mmultiscripts> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mprescripts/> + <mi>e</mi> + <mi>f</mi> + </mmultiscripts> + </mstyle> + </math></td> + </tr> + <tr> + <td>msubsup: subscriptshift, superscriptshift</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <msubsup> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </msubsup> + </mstyle> + </math></td> + </tr> + <tr> + <td>msub: subscriptshift</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <msub> + <mi>a</mi> + <mi>b</mi> + </msub> + </mstyle> + </math></td> + </tr> + <tr> + <td>msup: superscriptshift</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <msup> + <mi>a</mi> + <mi>b</mi> + </msup> + </mstyle> + </math></td> + </tr> + </tbody> +</table> +</body> +</html> diff --git a/layout/reftests/mathml/mstyle-1.xhtml b/layout/reftests/mathml/mstyle-1.xhtml new file mode 100644 index 000000000..56c9c7699 --- /dev/null +++ b/layout/reftests/mathml/mstyle-1.xhtml @@ -0,0 +1,123 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle</title> + <style type="text/css"> + table { width: 100%; border-collapse: collapse; } + td { border: solid black 1px; } + </style> +</head> + +<body> + +<table> + <tbody> + <tr> + <td>mfenced: open, close, separators </td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle open="[" close="]" separators=";"> + <mfenced> + <mn>1</mn> + <mn>2</mn> + </mfenced> + </mstyle> + </math></td> + </tr> + <tr> + <td>menclose: notation</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle notation="box"> + <menclose> + <mtext>menclose</mtext> + </menclose> + </mstyle> + </math></td> + </tr> + <tr> + <td>mfrac: bevelled, linethickness</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle bevelled="true" linethickness="thick"> + <mfrac> + <mi>a</mi> + <mi>b</mi> + </mfrac> + </mstyle> + </math></td> + </tr> + <tr> + <td>mfrac: numalign</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle numalign="right"> + <mfrac> + <mn>1</mn> + <mn>234</mn> + </mfrac> + </mstyle> + </math></td> + </tr> + <tr> + <td>mfrac: denomalign</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle denomalign="right"> + <mfrac> + <mn>123</mn> + <mn>4</mn> + </mfrac> + </mstyle> + </math></td> + </tr> + <tr> + <td>mmultiscripts: subscriptshift, superscriptshift </td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle subscriptshift="1em" superscriptshift="1em"> + <mmultiscripts> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + <mprescripts/> + <mi>e</mi> + <mi>f</mi> + </mmultiscripts> + </mstyle> + </math></td> + </tr> + <tr> + <td>msubsup: subscriptshift, superscriptshift</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle subscriptshift="1em" superscriptshift="1em"> + <msubsup> + <mi>a</mi> + <mi>b</mi> + <mi>c</mi> + </msubsup> + </mstyle> + </math></td> + </tr> + <tr> + <td>msub: subscriptshift</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle subscriptshift="1em"> + <msub> + <mi>a</mi> + <mi>b</mi> + </msub> + </mstyle> + </math></td> + </tr> + <tr> + <td>msup: superscriptshift</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle superscriptshift="1em"> + <msup> + <mi>a</mi> + <mi>b</mi> + </msup> + </mstyle> + </math></td> + </tr> + </tbody> +</table> +</body> +</html> diff --git a/layout/reftests/mathml/mstyle-2-ref.xhtml b/layout/reftests/mathml/mstyle-2-ref.xhtml new file mode 100644 index 000000000..19e816483 --- /dev/null +++ b/layout/reftests/mathml/mstyle-2-ref.xhtml @@ -0,0 +1,144 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle</title> + <style type="text/css"> + table { width: 100%; border-collapse: collapse; } + td { border: solid black 1px; } + </style> +</head> + +<body> + +<table> + <tbody> + <tr> + <td>mpadded: width</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mtext>_</mtext> + <mpadded/> + <mtext>_</mtext> + </mstyle> + </math></td> + </tr> + <tr> + <td>mpadded: lspace</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mtext>_</mtext> + <mpadded/> + <mtext>_</mtext> + </mstyle> + </math></td> + </tr> + <tr> + <td>mpadded: height</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <msup> + <mrow> + <mtext>_</mtext> + <mpadded/> + <mtext>_</mtext> + </mrow> + <mtext>_</mtext> + </msup> + </mstyle> + </math></td> + </tr> + <tr> + <td>mpadded: depth</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <msub> + <mrow> + <mtext>_</mtext> + <mpadded/> + <mtext>_</mtext> + </mrow> + <mtext>_</mtext> + </msub> + </mstyle> + </math></td> + </tr> + <tr> + <td>mspace: width</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mtext>_</mtext> + <mspace/> + <mtext>_</mtext> + </mstyle> + </math></td> + </tr> + <tr> + <td>mspace: height</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <msup> + <mrow> + <mtext>_</mtext> + <mspace/> + <mtext>_</mtext> + </mrow> + <mtext>_</mtext> + </msup> + </mstyle> + </math></td> + </tr> + <tr> + <td>mspace: depth</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <msub> + <mrow> + <mtext>_</mtext> + <mspace/> + <mtext>_</mtext> + </mrow> + <mtext>_</mtext> + </msub> + </mstyle> + </math></td> + </tr> + <tr> + <td>maction: selection</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <maction actiontype="toggle"> + <mn>1</mn> + <mn>2</mn> + </maction> + </mstyle> + </math></td> + </tr> + <tr> + <td>mtable: align</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mrow> + <mtext>_</mtext> + <mtable> + <mtr> + <mtd> + <mtext>―</mtext> + </mtd> + </mtr> + <mtr> + <mtd> + <mtext>―</mtext> + </mtd> + </mtr> + </mtable> + <mtext>_</mtext> + </mrow> + </mstyle> + </math></td> + </tr> + </tbody> +</table> +</body> +</html> diff --git a/layout/reftests/mathml/mstyle-2.xhtml b/layout/reftests/mathml/mstyle-2.xhtml new file mode 100644 index 000000000..93611b0f3 --- /dev/null +++ b/layout/reftests/mathml/mstyle-2.xhtml @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle</title> + <style type="text/css"> + table { width: 100%; border-collapse: collapse; } + td { border: solid black 1px; } + </style> +</head> + +<body> + +<!-- The attributes below should no longer have effect on <mstyle>/<math> + elements. See bug 838509 --> + +<table> + <tbody> + <tr> + <td>mpadded: width</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" width="1em"> + <mstyle width="1em"> + <mtext>_</mtext> + <mpadded/> + <mtext>_</mtext> + </mstyle> + </math></td> + </tr> + <tr> + <td>mpadded: lspace</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" lspace="1em"> + <mstyle lspace="1em"> + <mtext>_</mtext> + <mpadded/> + <mtext>_</mtext> + </mstyle> + </math></td> + </tr> + <tr> + <td>mpadded: height</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" height="1em"> + <mstyle height="1em"> + <msup> + <mrow> + <mtext>_</mtext> + <mpadded/> + <mtext>_</mtext> + </mrow> + <mtext>_</mtext> + </msup> + </mstyle> + </math></td> + </tr> + <tr> + <td>mpadded: depth</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" depth="1em"> + <mstyle depth="1em"> + <msub> + <mrow> + <mtext>_</mtext> + <mpadded/> + <mtext>_</mtext> + </mrow> + <mtext>_</mtext> + </msub> + </mstyle> + </math></td> + </tr> + <tr> + <td>mspace: width</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" width="1em"> + <mstyle width="1em"> + <mtext>_</mtext> + <mspace/> + <mtext>_</mtext> + </mstyle> + </math></td> + </tr> + <tr> + <td>mspace: height</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" height="1em"> + <mstyle height="1em"> + <msup> + <mrow> + <mtext>_</mtext> + <mspace/> + <mtext>_</mtext> + </mrow> + <mtext>_</mtext> + </msup> + </mstyle> + </math></td> + </tr> + <tr> + <td>mspace: depth</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" depth="1em"> + <mstyle depth="1em"> + <msub> + <mrow> + <mtext>_</mtext> + <mspace/> + <mtext>_</mtext> + </mrow> + <mtext>_</mtext> + </msub> + </mstyle> + </math></td> + </tr> + <tr> + <td>maction: selection</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" selection="2"> + <mstyle selection="2"> + <maction actiontype="toggle"> + <mn>1</mn> + <mn>2</mn> + </maction> + </mstyle> + </math></td> + </tr> + <tr> + <td>mtable: align</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" 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></td> + </tr> + </tbody> +</table> +</body> +</html> diff --git a/layout/reftests/mathml/mstyle-3-ref.xhtml b/layout/reftests/mathml/mstyle-3-ref.xhtml new file mode 100644 index 000000000..016e1d9e1 --- /dev/null +++ b/layout/reftests/mathml/mstyle-3-ref.xhtml @@ -0,0 +1,133 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle</title> + <style type="text/css"> + table { width: 100%; border-collapse: collapse; } + td { border: solid black 1px; } + </style> +</head> + +<body> + +<table> + <tbody> + <tr> + <td>mo: form</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mrow> + <!-- We assume that the infix/postfix forms of _ do --> + <!-- not have the same lspace/rspace values in the operator dictionary --> + <mtext>_</mtext> + <mo>_</mo> + <mtext>_</mtext> + </mrow> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: lspace, rspace</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mrow> + <!-- We assume that the infix form of _ has --> + <!-- nonzero lspace/rspace values in the operator dictionary --> + <mtext>_</mtext> + <mo>_</mo> + <mtext>_</mtext> + </mrow> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: stretchy</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mover> + <!-- We assume that the arrow has stretchy=true in the operator dictionary --> + <mtext>abcd</mtext> + <mo>→</mo> + </mover> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: accent</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mover> + <!-- We assume ⏞ has accent=true in the operator dictionary --> + <mrow> + <mi>x</mi> + <mo>+</mo> + <mi>y</mi> + <mo>+</mo> + <mi>z</mi> + </mrow> + <mo>⏞</mo> + </mover> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: maxsize</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mo>(</mo> + <mspace height="3em"/> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: minsize</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mo>(</mo> + <mspace height="1em"/> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: symmetric</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <!-- We assume that ( has symmetric=true in the operator dictionary --> + <mstyle> + <mtext>_</mtext> + <mo minsize="2">(</mo> + <mtext>_</mtext> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: movablelimits</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <!-- We assume that ∑ has movablelimits=true in the operator dictionary --> + <mstyle> + <munderover> + <mo>∑</mo> + <mi>a</mi> + <mi>b</mi> + </munderover> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: largeop</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <!-- We assume that ∑ has largeop=true in the operator dictionary --> + <mstyle> + <mo>∑</mo> + </mstyle> + </math></td> + </tr> + <!-- + fence: This attribute generally has no direct effect on the visual rendering. + separator: This attribute generally has no direct effect on the visual rendering. + --> + </tbody> +</table> +</body> +</html> diff --git a/layout/reftests/mathml/mstyle-3.xhtml b/layout/reftests/mathml/mstyle-3.xhtml new file mode 100644 index 000000000..8fdeb69cb --- /dev/null +++ b/layout/reftests/mathml/mstyle-3.xhtml @@ -0,0 +1,136 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle</title> + <style type="text/css"> + table { width: 100%; border-collapse: collapse; } + td { border: solid black 1px; } + </style> +</head> + +<body> + +<!-- The attributes below (except math@display) should no longer have effect on + <mstyle>/<math> elements. See bug 838509 --> + +<table> + <tbody> + <tr> + <td>mo: form</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" form="postfix"> + <mstyle form="postfix"> + <mrow> + <!-- We assume that the infix/postfix forms of _ do --> + <!-- not have the same lspace/rspace values in the operator dictionary --> + <mtext>_</mtext> + <mo>_</mo> + <mtext>_</mtext> + </mrow> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: lspace, rspace</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" lspace="0" rspace="0"> + <mstyle lspace="0" rspace="0"> + <mrow> + <!-- We assume that the infix form of _ has --> + <!-- nonzero lspace/rspace values in the operator dictionary --> + <mtext>_</mtext> + <mo>_</mo> + <mtext>_</mtext> + </mrow> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: stretchy</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" stretchy="false"> + <mstyle stretchy="false"> + <mover> + <!-- We assume that the arrow has stretchy=true in the operator dictionary --> + <mtext>abcd</mtext> + <mo>→</mo> + </mover> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: accent</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" accent="false"> + <mstyle accent="false"> + <mover> + <!-- We assume ⏞ has accent=true in the operator dictionary --> + <mrow> + <mi>x</mi> + <mo>+</mo> + <mi>y</mi> + <mo>+</mo> + <mi>z</mi> + </mrow> + <mo>⏞</mo> + </mover> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: maxsize</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" maxsize="1"> + <mstyle maxsize="1"> + <mo>(</mo> + <mspace height="3em"/> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: minsize</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" minsize="3"> + <mstyle minsize="3"> + <mo>(</mo> + <mspace height="1em"/> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: symmetric</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" symmetric="false"> + <!-- We assume that ( has symmetric=true in the operator dictionary --> + <mstyle symmetric="false"> + <mtext>_</mtext> + <mo minsize="2">(</mo> + <mtext>_</mtext> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: movablelimits</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="false"> + <!-- We assume that ∑ has movablelimits=true in the operator dictionary --> + <mstyle movablelimits="false"> + <munderover> + <mo>∑</mo> + <mi>a</mi> + <mi>b</mi> + </munderover> + </mstyle> + </math></td> + </tr> + <tr> + <td>mo: largeop</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" largeop="false"> + <!-- We assume that ∑ has largeop=true in the operator dictionary --> + <mstyle largeop="false"> + <mo>∑</mo> + </mstyle> + </math></td> + </tr> + <!-- + fence: This attribute generally has no direct effect on the visual rendering. + separator: This attribute generally has no direct effect on the visual rendering. + --> + </tbody> +</table> +</body> +</html> diff --git a/layout/reftests/mathml/mstyle-4-ref.xhtml b/layout/reftests/mathml/mstyle-4-ref.xhtml new file mode 100644 index 000000000..e82876083 --- /dev/null +++ b/layout/reftests/mathml/mstyle-4-ref.xhtml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle</title> + <style type="text/css"> + table { width: 100%; border-collapse: collapse; } + td { border: solid black 1px; } + </style> +</head> + +<body> + +<table> + <tbody> + <tr> + <td>mover: accent</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <mover> + <!-- We assume ⏞ is accent in the operator dictionary --> + <mrow> + <mi>x</mi> + <mo>+</mo> + <mi>y</mi> + <mo>+</mo> + <mi>z</mi> + </mrow> + <mo>⏞</mo> + </mover> + </mstyle> + </math></td> + </tr> + <tr> + <td>munder: accentunder</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <munder> + <!-- We assume ⏟ is accent in the operator dictionary --> + <mrow> + <mi>x</mi> + <mo>+</mo> + <mi>y</mi> + <mo>+</mo> + <mi>z</mi> + </mrow> + <mo>⏟</mo> + </munder> + </mstyle> + </math></td> + </tr> + <tr> + <td>munderover: accent, accentunder</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <munderover> + <!-- We assume ⏞ and ⏟ are accents in the operator dictionary --> + <mrow> + <mi>x</mi> + <mo>+</mo> + <mi>y</mi> + <mo>+</mo> + <mi>z</mi> + </mrow> + <mo>⏟</mo> + <mo>⏞</mo> + </munderover> + </mstyle> + </math></td> + </tr> + </tbody> +</table> +</body> +</html> diff --git a/layout/reftests/mathml/mstyle-4.xhtml b/layout/reftests/mathml/mstyle-4.xhtml new file mode 100644 index 000000000..e93497755 --- /dev/null +++ b/layout/reftests/mathml/mstyle-4.xhtml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle</title> + <style type="text/css"> + table { width: 100%; border-collapse: collapse; } + td { border: solid black 1px; } + </style> +</head> + +<body> + +<!-- The attributes below should no longer have effect on <mstyle>/<math> + elements. See bug 838509 --> + +<table> + <tbody> + <tr> + <td>mover: accent</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" accent="false"> + <mstyle accent="false"> + <mover> + <!-- We assume ⏞ is accent in the operator dictionary --> + <mrow> + <mi>x</mi> + <mo>+</mo> + <mi>y</mi> + <mo>+</mo> + <mi>z</mi> + </mrow> + <mo>⏞</mo> + </mover> + </mstyle> + </math></td> + </tr> + <tr> + <td>munder: accentunder</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" accentunder="false"> + <mstyle accentunder="false"> + <munder> + <!-- We assume ⏟ is accent in the operator dictionary --> + <mrow> + <mi>x</mi> + <mo>+</mo> + <mi>y</mi> + <mo>+</mo> + <mi>z</mi> + </mrow> + <mo>⏟</mo> + </munder> + </mstyle> + </math></td> + </tr> + <tr> + <td>munderover: accent, accentunder</td> + <td><math xmlns="http://www.w3.org/1998/Math/MathML" accent="false" accentunder="false"> + <mstyle accent="false" accentunder="false"> + <munderover> + <!-- We assume ⏞ and ⏟ are accents in the operator dictionary --> + <mrow> + <mi>x</mi> + <mo>+</mo> + <mi>y</mi> + <mo>+</mo> + <mi>z</mi> + </mrow> + <mo>⏟</mo> + <mo>⏞</mo> + </munderover> + </mstyle> + </math></td> + </tr> + </tbody> +</table> +</body> +</html> diff --git a/layout/reftests/mathml/mstyle-5-ref.xhtml b/layout/reftests/mathml/mstyle-5-ref.xhtml new file mode 100644 index 000000000..f4c895e12 --- /dev/null +++ b/layout/reftests/mathml/mstyle-5-ref.xhtml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle with lquote/rquote for ms</title> +</head> +<body> + +<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mstyle> + <ms>text</ms> + </mstyle> +</math> + +</body> +</html> diff --git a/layout/reftests/mathml/mstyle-5.xhtml b/layout/reftests/mathml/mstyle-5.xhtml new file mode 100644 index 000000000..9d7c7f915 --- /dev/null +++ b/layout/reftests/mathml/mstyle-5.xhtml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="us-ascii"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=us-ascii" /> + <title>Test mstyle with lquote/rquote for ms</title> +</head> +<body> + +<!-- The attributes below should no longer have effect on <mstyle>/<math> + elements. See bug 838509 --> + +<math xmlns="http://www.w3.org/1998/Math/MathML" lquote="(" rquote=")"> + <mstyle lquote="(" rquote=")"> + <ms>text</ms> + </mstyle> +</math> + +</body> +</html> diff --git a/layout/reftests/mathml/mtable-align-negative-rownumber-ref.html b/layout/reftests/mathml/mtable-align-negative-rownumber-ref.html new file mode 100644 index 000000000..ebf3bf878 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/mtable-align-negative-rownumber.html b/layout/reftests/mathml/mtable-align-negative-rownumber.html new file mode 100644 index 000000000..66aaed8f8 --- /dev/null +++ b/layout/reftests/mathml/mtable-align-negative-rownumber.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 -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/layout/reftests/mathml/mtable-align-whitespace-ref.html b/layout/reftests/mathml/mtable-align-whitespace-ref.html new file mode 100644 index 000000000..520e7493c --- /dev/null +++ b/layout/reftests/mathml/mtable-align-whitespace-ref.html @@ -0,0 +1,336 @@ +<!DOCTYPE html> +<head> +<title>mtable align : WhiteSpace Check</title> +</head> + +<body> + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + +<br><br><br> + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + +</body> + +</html> diff --git a/layout/reftests/mathml/mtable-align-whitespace.html b/layout/reftests/mathml/mtable-align-whitespace.html new file mode 100644 index 000000000..f5bad1f4b --- /dev/null +++ b/layout/reftests/mathml/mtable-align-whitespace.html @@ -0,0 +1,332 @@ +<!DOCTYPE html> +<head> +<title>mtable align : WhiteSpace Check</title> +</head> + +<body> + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center-3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center-3 "> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align=" center-3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align=" center-3 "> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align=" center -3"> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="center -3 "> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align=" center -3 "> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + + +<br><br><br> + + <math> + + <mi>X</mi> + <mo>=</mo> + <mtable frame="solid" align="

 center

 -3

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

	 center

	 -3

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

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

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

	 center-3

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

	 center

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

	 -3

	 "> + <mtr> + <mtd><mi>A</mi></mtd> + <mtd><mi>B</mi></mtd> + </mtr> + <mtr> + <mtd><mi>C</mi></mtd> + <mtd><mi>D</mi></mtd> + </mtr> + <mtr> + <mtd><mi>E</mi></mtd> + <mtd><mi>F</mi></mtd> + </mtr> + </mtable> + + </math> + +</body> +</html> diff --git a/layout/reftests/mathml/mtable-columnalign-multi-mtable-dynamic.html b/layout/reftests/mathml/mtable-columnalign-multi-mtable-dynamic.html new file mode 100644 index 000000000..a84e13422 --- /dev/null +++ b/layout/reftests/mathml/mtable-columnalign-multi-mtable-dynamic.html @@ -0,0 +1,146 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnalign</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-columnalign-multi-mtable.html b/layout/reftests/mathml/mtable-columnalign-multi-mtable.html new file mode 100644 index 000000000..139cba982 --- /dev/null +++ b/layout/reftests/mathml/mtable-columnalign-multi-mtable.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 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/layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html b/layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html new file mode 100644 index 000000000..cf3b160fe --- /dev/null +++ b/layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html @@ -0,0 +1,155 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnalign</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-columnalign-multi-mtr.html b/layout/reftests/mathml/mtable-columnalign-multi-mtr.html new file mode 100644 index 000000000..9f37f96ab --- /dev/null +++ b/layout/reftests/mathml/mtable-columnalign-multi-mtr.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 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/layout/reftests/mathml/mtable-columnalign-multi-ref.html b/layout/reftests/mathml/mtable-columnalign-multi-ref.html new file mode 100644 index 000000000..538eb2ad1 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html b/layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html new file mode 100644 index 000000000..047673e7e --- /dev/null +++ b/layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html @@ -0,0 +1,146 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnalign</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-columnalign-single-mtable.html b/layout/reftests/mathml/mtable-columnalign-single-mtable.html new file mode 100644 index 000000000..15eedc61f --- /dev/null +++ b/layout/reftests/mathml/mtable-columnalign-single-mtable.html @@ -0,0 +1,128 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML columnalign</title> + </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/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html b/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html new file mode 100644 index 000000000..cad17b550 --- /dev/null +++ b/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html @@ -0,0 +1,155 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnalign</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-columnalign-single-mtr.html b/layout/reftests/mathml/mtable-columnalign-single-mtr.html new file mode 100644 index 000000000..badaeff5c --- /dev/null +++ b/layout/reftests/mathml/mtable-columnalign-single-mtr.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 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/layout/reftests/mathml/mtable-columnalign-single-ref.html b/layout/reftests/mathml/mtable-columnalign-single-ref.html new file mode 100644 index 000000000..69e7627f5 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/mtable-columnlines-multi-mtable-dynamic.html b/layout/reftests/mathml/mtable-columnlines-multi-mtable-dynamic.html new file mode 100644 index 000000000..0fca63f75 --- /dev/null +++ b/layout/reftests/mathml/mtable-columnlines-multi-mtable-dynamic.html @@ -0,0 +1,105 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnlines</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-columnlines-multi-ref.html b/layout/reftests/mathml/mtable-columnlines-multi-ref.html new file mode 100644 index 000000000..f3ec93681 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/mtable-columnlines-single-mtable-dynamic.html b/layout/reftests/mathml/mtable-columnlines-single-mtable-dynamic.html new file mode 100644 index 000000000..4dbe0279d --- /dev/null +++ b/layout/reftests/mathml/mtable-columnlines-single-mtable-dynamic.html @@ -0,0 +1,105 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML columnlines</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-columnlines-single-ref.html b/layout/reftests/mathml/mtable-columnlines-single-ref.html new file mode 100644 index 000000000..d6fc000c7 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/mtable-rowalign-multi-mtable-dynamic.html b/layout/reftests/mathml/mtable-rowalign-multi-mtable-dynamic.html new file mode 100644 index 000000000..6abdb4020 --- /dev/null +++ b/layout/reftests/mathml/mtable-rowalign-multi-mtable-dynamic.html @@ -0,0 +1,146 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowalign</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-rowalign-multi-mtable.html b/layout/reftests/mathml/mtable-rowalign-multi-mtable.html new file mode 100644 index 000000000..9dce35b32 --- /dev/null +++ b/layout/reftests/mathml/mtable-rowalign-multi-mtable.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 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/layout/reftests/mathml/mtable-rowalign-multi-ref.html b/layout/reftests/mathml/mtable-rowalign-multi-ref.html new file mode 100644 index 000000000..6e1fc1910 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html b/layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html new file mode 100644 index 000000000..5dfa125b4 --- /dev/null +++ b/layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html @@ -0,0 +1,146 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowalign</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-rowalign-single-mtable.html b/layout/reftests/mathml/mtable-rowalign-single-mtable.html new file mode 100644 index 000000000..14b5ccd32 --- /dev/null +++ b/layout/reftests/mathml/mtable-rowalign-single-mtable.html @@ -0,0 +1,128 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test MathML rowalign</title> + </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/layout/reftests/mathml/mtable-rowalign-single-mtr-dynamic.html b/layout/reftests/mathml/mtable-rowalign-single-mtr-dynamic.html new file mode 100644 index 000000000..d255c965d --- /dev/null +++ b/layout/reftests/mathml/mtable-rowalign-single-mtr-dynamic.html @@ -0,0 +1,155 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowalign</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-rowalign-single-mtr.html b/layout/reftests/mathml/mtable-rowalign-single-mtr.html new file mode 100644 index 000000000..2492ec8be --- /dev/null +++ b/layout/reftests/mathml/mtable-rowalign-single-mtr.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 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/layout/reftests/mathml/mtable-rowalign-single-ref.html b/layout/reftests/mathml/mtable-rowalign-single-ref.html new file mode 100644 index 000000000..b343cb7b8 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/mtable-rowlines-multi-mtable-dynamic.html b/layout/reftests/mathml/mtable-rowlines-multi-mtable-dynamic.html new file mode 100644 index 000000000..09cb8b475 --- /dev/null +++ b/layout/reftests/mathml/mtable-rowlines-multi-mtable-dynamic.html @@ -0,0 +1,105 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowlines</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-rowlines-multi-ref.html b/layout/reftests/mathml/mtable-rowlines-multi-ref.html new file mode 100644 index 000000000..ac5f1f1c2 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/mtable-rowlines-single-mtable-dynamic.html b/layout/reftests/mathml/mtable-rowlines-single-mtable-dynamic.html new file mode 100644 index 000000000..07ff51576 --- /dev/null +++ b/layout/reftests/mathml/mtable-rowlines-single-mtable-dynamic.html @@ -0,0 +1,105 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Test MathML rowlines</title> + <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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </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/layout/reftests/mathml/mtable-rowlines-single-ref.html b/layout/reftests/mathml/mtable-rowlines-single-ref.html new file mode 100644 index 000000000..000eaa2a2 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/mtable-width-ref.html b/layout/reftests/mathml/mtable-width-ref.html new file mode 100644 index 000000000..8550c3735 --- /dev/null +++ b/layout/reftests/mathml/mtable-width-ref.html @@ -0,0 +1,45 @@ +<!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/layout/reftests/mathml/mtable-width.html b/layout/reftests/mathml/mtable-width.html new file mode 100644 index 000000000..2a4656883 --- /dev/null +++ b/layout/reftests/mathml/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"/> + </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/layout/reftests/mathml/multiscripts-1-ref.html b/layout/reftests/mathml/multiscripts-1-ref.html new file mode 100644 index 000000000..2fcc14250 --- /dev/null +++ b/layout/reftests/mathml/multiscripts-1-ref.html @@ -0,0 +1,71 @@ +<!DOCTYPE html> +<html><head> +<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Comparison of script elements</title></head> + <body> + msubsup: + <math> + <mmultiscripts style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">ccc</mtext> + </mmultiscripts> + </math> + + <br><br> + + msubsup: + <math> + <mmultiscripts style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + <none/> + </mmultiscripts> + </math> + + <br><br> + + msup / msubsup: + <math> + <mmultiscripts style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <none/> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + </mmultiscripts> + </math> + + <math> + <mmultiscripts style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <none/> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + </mmultiscripts> + </math> + + <br><br> + + + mrow / msub: + <math> + <mrow style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + </mrow> + </math> + + <math> + <mrow style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + </mrow> + </math> + + <br><br> + + msupsub: + <math> + <mmultiscripts style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <none /> + <none /> + </mmultiscripts> + </math> + +</body></html> diff --git a/layout/reftests/mathml/multiscripts-1.html b/layout/reftests/mathml/multiscripts-1.html new file mode 100644 index 000000000..fa45ff369 --- /dev/null +++ b/layout/reftests/mathml/multiscripts-1.html @@ -0,0 +1,71 @@ +<!DOCTYPE html> +<html><head> +<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Comparison of script elements</title></head> + <body> + msubsup: + <math> + <msubsup style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">ccc</mtext> + </msubsup> + </math> + + <br><br> + + <!-- Different rules apply to msub, so it won't provide equivalent output --> + msubsup: + <math> + <msubsup style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + <mrow></mrow> + </msubsup> + </math> + + <br><br> + + msup / msubsup: + <math> + <msup style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + </msup> + </math> + + <math> + <msubsup style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mrow></mrow> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + </msubsup> + </math> + + <br><br> + + mrow / msub: + <math> + <mrow style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + </mrow> + </math> + + <math> + <msub style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mrow></mrow> + </msub> + </math> + + <br><br> + + msupsub: + <math> + <msubsup style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mrow></mrow> + <mrow></mrow> + </msubsup> + </math> + +</body></html> diff --git a/layout/reftests/mathml/munder-mover-align-accent-false-ref.html b/layout/reftests/mathml/munder-mover-align-accent-false-ref.html new file mode 100644 index 000000000..bd6859b6c --- /dev/null +++ b/layout/reftests/mathml/munder-mover-align-accent-false-ref.html @@ -0,0 +1,225 @@ +<!DOCTYPE html> +<html> + <head><title></title></head> + <body> + <h2> Test with accent="false" </h2> + <table border="1"> + <tr> + <td align="center"></td> + <th colspan="2">mover</th> + <th colspan="2">munder</th> + </tr> + <tr> + <td align="center"></td> + <td align="center"><mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + </mrow></td> + </tr> + <tr> + <th> + align="left" + </th> + <td align="center"> + <math> + <mover> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + <tr> + <th> + align="right" + </th> + <td align="center"> + <math> + <mover> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + <tr> + <th> + align="center" + </th> + <td align="center"> + <math> + <mover> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + </table> + <table> + <tr> + <th> + <h5>Under & Over</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </math> + </th> + <th> </th> + <th> + <h5>Base</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + </math> + </th> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/mathml/munder-mover-align-accent-false.html b/layout/reftests/mathml/munder-mover-align-accent-false.html new file mode 100644 index 000000000..0e04b6bbd --- /dev/null +++ b/layout/reftests/mathml/munder-mover-align-accent-false.html @@ -0,0 +1,177 @@ +<!DOCTYPE html> +<html> + <head><title></title></head> + <body> + <h2> Test with accent="false" </h2> + <table border="1"> + <tr> + <td align="center"></td> + <th colspan="2">mover</th> + <th colspan="2">munder</th> + </tr> + <tr> + <td align="center"></td> + <td align="center"><mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + </mrow></td> + </tr> + <tr> + <th> + align="left" + </th> + <td align="center"> + <math> + <mover align="left"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover align="left"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder align="left"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder align="left"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + <tr> + <th> + align="right" + </th> + <td align="center"> + <math> + <mover align="right"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover align="right"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder align="right"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder align="right"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + <tr> + <th> + align="center" + </th> + <td align="center"> + <math> + <mover align="center"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover align="center"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder align="center"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder align="center"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + </table> + <table> + <tr> + <th> + <h5>Under & Over</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </math> + </th> + <th> </th> + <th> + <h5>Base</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + </math> + </th> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/mathml/munder-mover-align-accent-true-ref.html b/layout/reftests/mathml/munder-mover-align-accent-true-ref.html new file mode 100644 index 000000000..ccf3b7394 --- /dev/null +++ b/layout/reftests/mathml/munder-mover-align-accent-true-ref.html @@ -0,0 +1,225 @@ +<!DOCTYPE html> +<html> + <head><title></title></head> + <body> + <h2> Test with accent="true" </h2> + <table border="1"> + <tr> + <td align="center"></td> + <th colspan="2">mover</th> + <th colspan="2">munder</th> + </tr> + <tr> + <td align="center"></td> + <td align="center"><mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + </mrow></td> + </tr> + <tr> + <th> + align="left" + </th> + <td align="center"> + <math> + <mover accent="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover accent="true"> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder accentunder="true"> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + <tr> + <th> + align="right" + </th> + <td align="center"> + <math> + <mover accent="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover accent="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder accentunder="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + <tr> + <th> + align="center" + </th> + <td align="center"> + <math> + <mover accent="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover accent="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder accentunder="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + </table> + <table> + <tr> + <th> + <h5>Under & Over</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </math> + </th> + <th> </th> + <th> + <h5>Base</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + </math> + </th> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/mathml/munder-mover-align-accent-true.html b/layout/reftests/mathml/munder-mover-align-accent-true.html new file mode 100644 index 000000000..60d7f5a4e --- /dev/null +++ b/layout/reftests/mathml/munder-mover-align-accent-true.html @@ -0,0 +1,177 @@ +<!DOCTYPE html> +<html> + <head><title></title></head> + <body> + <h2> Test with accent="true" </h2> + <table border="1"> + <tr> + <td align="center"></td> + <th colspan="2">mover</th> + <th colspan="2">munder</th> + </tr> + <tr> + <td align="center"></td> + <td align="center"><mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + </mrow> + </td> + <td align="center"> + <mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + </mrow></td> + </tr> + <tr> + <th> + align="left" + </th> + <td align="center"> + <math> + <mover align="left" accent="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover align="left" accent="true"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder align="left" accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder align="left" accentunder="true"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + <tr> + <th> + align="right" + </th> + <td align="center"> + <math> + <mover align="right" accent="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover align="right" accent="true"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder align="right" accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder align="right" accentunder="true"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + <tr> + <th> + align="center" + </th> + <td align="center"> + <math> + <mover align="center" accent="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <mover align="center" accent="true"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </mover> + </math> + </td> + <td align="center"> + <math> + <munder align="center" accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munder> + </math> + </td> + <td align="center"> + <math> + <munder align="center" accentunder="true"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munder> + </math> + </td> + </tr> + </table> + <table> + <tr> + <th> + <h5>Under & Over</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </math> + </th> + <th> </th> + <th> + <h5>Base</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + </math> + </th> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/mathml/munderover-accent-dynamic-ref.html b/layout/reftests/mathml/munderover-accent-dynamic-ref.html new file mode 100644 index 000000000..eaaedf27c --- /dev/null +++ b/layout/reftests/mathml/munderover-accent-dynamic-ref.html @@ -0,0 +1,12 @@ +<!DOCTYPE html>
+ <html>
+ <head>
+ <title>munderover@accent</title>
+ <meta charset="utf-8"/>
+ </head>
+ <body>
+ <math>
+ <munderover accent="true"><mtext>X</mtext><mo>O</mo><mo>O</mo></munderover>
+ </math>
+ </body>
+</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/munderover-accent-dynamic.html b/layout/reftests/mathml/munderover-accent-dynamic.html new file mode 100644 index 000000000..6483f1036 --- /dev/null +++ b/layout/reftests/mathml/munderover-accent-dynamic.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait">
+ <head>
+ <title>munderover@accent</title>
+ <meta charset="utf-8"/>
+ <script type="text/javascript">
+ function doTest() {
+ document.getElementById('mathOperator').setAttribute('accent', 'true');
+ document.documentElement.removeAttribute("class");
+ }
+ window.addEventListener("MozReftestInvalidate",doTest, false);
+ </script>
+ </head>
+ <body>
+ <math>
+ <munderover id="mathOperator"><mtext>X</mtext><mo>O</mo><mo>O</mo></munderover>
+ </math>
+ </body>
+</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/munderover-accentunder-dynamic-ref.html b/layout/reftests/mathml/munderover-accentunder-dynamic-ref.html new file mode 100644 index 000000000..669f6240f --- /dev/null +++ b/layout/reftests/mathml/munderover-accentunder-dynamic-ref.html @@ -0,0 +1,12 @@ +<!DOCTYPE html>
+ <html>
+ <head>
+ <title>munderover@accentunder</title>
+ <meta charset="utf-8"/>
+ </head>
+ <body>
+ <math>
+ <munderover accentunder="true"><mtext>X</mtext><mo>O</mo><mo>O</mo></munderover>
+ </math>
+ </body>
+</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/munderover-accentunder-dynamic.html b/layout/reftests/mathml/munderover-accentunder-dynamic.html new file mode 100644 index 000000000..5d93386e1 --- /dev/null +++ b/layout/reftests/mathml/munderover-accentunder-dynamic.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="reftest-wait">
+ <head>
+ <title>munderover@accentunder</title>
+ <meta charset="utf-8"/>
+ <script type="text/javascript">
+ function doTest() {
+ document.getElementById('mathOperator').setAttribute('accentunder', 'true');
+ document.documentElement.removeAttribute("class");
+ }
+ window.addEventListener("MozReftestInvalidate",doTest, false);
+ </script>
+ </head>
+ <body>
+ <math>
+ <munderover id="mathOperator"><mtext>X</mtext><mo>O</mo><mo>O</mo></munderover>
+ </math>
+ </body>
+</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/munderover-align-accent-false-ref.html b/layout/reftests/mathml/munderover-align-accent-false-ref.html new file mode 100644 index 000000000..902d54f7a --- /dev/null +++ b/layout/reftests/mathml/munderover-align-accent-false-ref.html @@ -0,0 +1,275 @@ +<!DOCTYPE html> +<html> + <head><title></title></head> + <body> + <h2> Test with accent="false" </h2> + <table border="1"> + <tr> + <td align="center"></td> + <th colspan="6">munderover</th> + </tr> + <tr> + <td align="center"></td> + <td align="center"><math><mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + <mo><</mo> + <mi>Under<mi> + </mrow></math> + </td> + <td align="center"> + <math><mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + <mo>></mo> + <mi>Under</mi> + </mrow></math> + </td> + <td align="center"> + <math><mrow> + <mi>Over = Under</mi> + <mo><</mo> + <mi>Base</mi> + </mrow></math> + </td> + <td align="center"><math><mrow> + <mi>Over = Under</mi> + <mo>></mo> + <mi>Base</mi> + </mrow></math></td> + </tr> + <tr> + <th> + align="left" + </th> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + <tr> + <th> + align="right" + </th> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + <tr> + <th> + align="center" + </th> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="false" accentunder="false"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + </table> + <table> + <tr> + <th> + <h5>Under & Over</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </math> + </th> + <th> </th> + <th> + <h5>Base</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + </math> + </th> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/mathml/munderover-align-accent-false.html b/layout/reftests/mathml/munderover-align-accent-false.html new file mode 100644 index 000000000..4242da394 --- /dev/null +++ b/layout/reftests/mathml/munderover-align-accent-false.html @@ -0,0 +1,191 @@ +<!DOCTYPE html> +<html> + <head><title></title></head> + <body> + <h2> Test with accent="false" </h2> + <table border="1"> + <tr> + <td align="center"></td> + <th colspan="4">munderover</th> + </tr> + <tr> + <td align="center"></td> + <td align="center"><math><mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + <mo><</mo> + <mi>Under<mi> + </mrow></math> + </td> + <td align="center"> + <math><mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + <mo>></mo> + <mi>Under</mi> + </mrow></math> + </td> + <td align="center"> + <math><mrow> + <mi>Over = Under</mi> + <mo><</mo> + <mi>Base</mi> + </mrow></math> + </td> + <td align="center"><math><mrow> + <mi>Over = Under</mi> + <mo>></mo> + <mi>Base</mi> + </mrow></math></td> + </tr> + <tr> + <th> + align="left" + </th> + <td align="center"> + <math> + <munderover align="left"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </moverover> + </math> + </td> + <td align="center"> + <math> + <munderover align="left"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="left"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="left"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + <tr> + <th> + align="right" + </th> + <td align="center"> + <math> + <munderover align="right"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="right"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="right"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="right"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + <tr> + <th> + align="center" + </th> + <td align="center"> + <math> + <munderover align="center"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="center"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="center"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="center"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + </table> + <table> + <tr> + <th> + <h5>Under & Over</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </math> + </th> + <th> </th> + <th> + <h5>Base</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + </math> + </th> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/mathml/munderover-align-accent-true-ref.html b/layout/reftests/mathml/munderover-align-accent-true-ref.html new file mode 100644 index 000000000..59f533099 --- /dev/null +++ b/layout/reftests/mathml/munderover-align-accent-true-ref.html @@ -0,0 +1,275 @@ +<!DOCTYPE html> +<html> + <head><title></title></head> + <body> + <h2> Test with accent="true" </h2> + <table border="1"> + <tr> + <td align="center"></td> + <th colspan="6">munderover</th> + </tr> + <tr> + <td align="center"></td> + <td align="center"><math><mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + <mo><</mo> + <mi>Under<mi> + </mrow></math> + </td> + <td align="center"> + <math><mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + <mo>></mo> + <mi>Under</mi> + </mrow></math> + </td> + <td align="center"> + <math><mrow> + <mi>Over = Under</mi> + <mo><</mo> + <mi>Base</mi> + </mrow></math> + </td> + <td align="center"><math><mrow> + <mi>Over = Under</mi> + <mo>></mo> + <mi>Base</mi> + </mrow></math></td> + </tr> + <tr> + <th> + align="left" + </th> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + <tr> + <th> + align="right" + </th> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + <tr> + <th> + align="center" + </th> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px"/> + </mrow> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover accent="true" accentunder="true"> + <mrow> + <mspace height="15px" width="25px"/> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="25px"/> + </mrow> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + </table> + <table> + <tr> + <th> + <h5>Under & Over</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </math> + </th> + <th> </th> + <th> + <h5>Base</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + </math> + </th> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/mathml/munderover-align-accent-true.html b/layout/reftests/mathml/munderover-align-accent-true.html new file mode 100644 index 000000000..eb918b21f --- /dev/null +++ b/layout/reftests/mathml/munderover-align-accent-true.html @@ -0,0 +1,191 @@ +<!DOCTYPE html> +<html> + <head><title></title></head> + <body> + <h2> Test with accent="true" </h2> + <table border="1"> + <tr> + <td align="center"></td> + <th colspan="4">munderover</th> + </tr> + <tr> + <td align="center"></td> + <td align="center"><math><mrow> + <mi>Over</mi> + <mo><</mo> + <mi>Base</mi> + <mo><</mo> + <mi>Under<mi> + </mrow></math> + </td> + <td align="center"> + <math><mrow> + <mi>Over</mi> + <mo>></mo> + <mi>Base</mi> + <mo>></mo> + <mi>Under</mi> + </mrow></math> + </td> + <td align="center"> + <math><mrow> + <mi>Over = Under</mi> + <mo><</mo> + <mi>Base</mi> + </mrow></math> + </td> + <td align="center"><math><mrow> + <mi>Over = Under</mi> + <mo>></mo> + <mi>Base</mi> + </mrow></math></td> + </tr> + <tr> + <th> + align="left" + </th> + <td align="center"> + <math> + <munderover align="left" accent="true" accentunder="true"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="left" accent="true" accentunder="true"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="left" accent="true" accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="left" accent="true" accentunder="true"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + <tr> + <th> + align="right" + </th> + <td align="center"> + <math> + <munderover align="right" accent="true" accentunder="true"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="right" accent="true" accentunder="true"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="right" accent="true" accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="right" accent="true" accentunder="true"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + <tr> + <th> + align="center" + </th> + <td align="center"> + <math> + <munderover align="center" accent="true" accentunder="true"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="center" accent="true" accentunder="true"> + <mspace height="15px" width="50px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="center" accent="true" accentunder="true"> + <mspace height="15px" width="75px" mathbackground="blue"/> + <mspace height="15px" width="25px" mathbackground="red"/> + <mspace height="15px" width="25px" mathbackground="red"/> + </munderover> + </math> + </td> + <td align="center"> + <math> + <munderover align="center" accent="true" accentunder="true"> + <mspace height="15px" width="25px" mathbackground="blue"/> + <mspace height="15px" width="75px" mathbackground="red"/> + <mspace height="15px" width="75px" mathbackground="red"/> + </munderover> + </math> + </td> + </tr> + </table> + <table> + <tr> + <th> + <h5>Under & Over</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="red"/> + </mrow> + </math> + </th> + <th> </th> + <th> + <h5>Base</h5> + + <math> + <mrow> + <mspace height="15px" width="25px" mathbackground="blue"/> + </mrow> + </math> + </th> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/mathml/munderover-empty-scripts-ref.html b/layout/reftests/mathml/munderover-empty-scripts-ref.html new file mode 100644 index 000000000..27d858309 --- /dev/null +++ b/layout/reftests/mathml/munderover-empty-scripts-ref.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test munderover with empty scripts</title> + </head> + <body> + + <p>munder / munderover with empty overscript: + <math> + <munderover style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + <mspace></mspace> + </munderover> + </math></p> + + <p>mover / munderover with empty underscript: + <math> + <munderover style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mspace></mspace> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + </munderover> + </math></p> + + <p>mrow / munder with empty scripts: + <math> + <munderover style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mspace></mspace> + <mspace></mspace> + </munderover> + </math></p> + </body> +</html> diff --git a/layout/reftests/mathml/munderover-empty-scripts.html b/layout/reftests/mathml/munderover-empty-scripts.html new file mode 100644 index 000000000..5704c5c74 --- /dev/null +++ b/layout/reftests/mathml/munderover-empty-scripts.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test munderover with empty scripts</title> + </head> + <body> + + <p>munder / munderover with empty overscript: + <math> + <munder style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + </munder> + </math></p> + + <p>mover / munderover with empty underscript: + <math> + <mover style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + <mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext> + </mover> + </math></p> + + <p>mrow / munder with empty scripts: + <math> + <mrow style="background: red;"> + <mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext> + </mrow> + </math></p> + + </body> +</html> diff --git a/layout/reftests/mathml/negative-mspace-1-ref.html b/layout/reftests/mathml/negative-mspace-1-ref.html new file mode 100644 index 000000000..ccf1ed995 --- /dev/null +++ b/layout/reftests/mathml/negative-mspace-1-ref.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <title>negative mspace</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <p> + <math> + <mrow> + <mspace width="1em" height="1em" mathbackground="red"></mspace> + <mspace width="1em" height="1em" mathbackground="blue"></mspace> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mspace width="1em" height="1em" mathbackground="blue"></mspace> + <mspace width="1em" height="1em" mathbackground="red"></mspace> + </mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/negative-mspace-1.html b/layout/reftests/mathml/negative-mspace-1.html new file mode 100644 index 000000000..b79b66f15 --- /dev/null +++ b/layout/reftests/mathml/negative-mspace-1.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html> + <head> + <title>negative mspace</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <p> + <math> + <mrow> + <mspace width="2em" height="1em" mathbackground="red"></mspace> + <mspace width="-1em"/> + <mspace width="1em" height="1em" mathbackground="blue"></mspace> + </mrow> + </math> + </p> + <p> + <math dir="rtl"> + <mrow> + <mspace width="2em" height="1em" mathbackground="red"></mspace> + <mspace width="-1em"/> + <mspace width="1em" height="1em" mathbackground="blue"></mspace> + </mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/non-spacing-accent-1-ref.xhtml b/layout/reftests/mathml/non-spacing-accent-1-ref.xhtml new file mode 100644 index 000000000..9c5a9145f --- /dev/null +++ b/layout/reftests/mathml/non-spacing-accent-1-ref.xhtml @@ -0,0 +1,17 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <style type="text/css"> + html { background-color: white } + mi { color: white; } + mo { color: red; } + </style> + </head> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mi>a</mi> + <mo>̂</mo> + </mover> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/non-spacing-accent-1.xhtml b/layout/reftests/mathml/non-spacing-accent-1.xhtml new file mode 100644 index 000000000..b9133ddd1 --- /dev/null +++ b/layout/reftests/mathml/non-spacing-accent-1.xhtml @@ -0,0 +1,18 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Check that non-spacing marks in accents are visible</title> + <style type="text/css"> + html { background-color: white } + mi { color: white; } + mo { color: black; } + </style> + </head> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mi>a</mi> + <mo>̂</mo> + </mover> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/number-size-1-ref.xhtml b/layout/reftests/mathml/number-size-1-ref.xhtml new file mode 100644 index 000000000..6d38b4bb0 --- /dev/null +++ b/layout/reftests/mathml/number-size-1-ref.xhtml @@ -0,0 +1,7 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mn mathsize="200%">2</mn> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/number-size-1.xhtml b/layout/reftests/mathml/number-size-1.xhtml new file mode 100644 index 000000000..40c7347ad --- /dev/null +++ b/layout/reftests/mathml/number-size-1.xhtml @@ -0,0 +1,7 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mn mathsize="2">2</mn> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-1-ref.html b/layout/reftests/mathml/op-dict-1-ref.html new file mode 100644 index 000000000..5650be193 --- /dev/null +++ b/layout/reftests/mathml/op-dict-1-ref.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo form</title> +</head> +<body> + <math> + <mrow> + <mo form="prefix">+</mo> + <!-- need a second child to avoid zeroing dictionary spacing --> + <mn>1</mn> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-1.html b/layout/reftests/mathml/op-dict-1.html new file mode 100644 index 000000000..80e57e48c --- /dev/null +++ b/layout/reftests/mathml/op-dict-1.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo form</title> +</head> +<body> + <math> + <mrow> + <mo form="infix">+</mo> + <mn>1</mn> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-10-ref.html b/layout/reftests/mathml/op-dict-10-ref.html new file mode 100644 index 000000000..8026c8248 --- /dev/null +++ b/layout/reftests/mathml/op-dict-10-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo accent</title> +</head> +<body> + <math> + <munderover><mtext>X</mtext><mo accent="true">→</mo><mo>O</mo></munderover> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-10.html b/layout/reftests/mathml/op-dict-10.html new file mode 100644 index 000000000..7c0a524b6 --- /dev/null +++ b/layout/reftests/mathml/op-dict-10.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo accent</title> +</head> +<body> + <math> + <munderover><mtext>X</mtext><mo>→</mo><mo>O</mo></munderover> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-11-ref.html b/layout/reftests/mathml/op-dict-11-ref.html new file mode 100644 index 000000000..8026c8248 --- /dev/null +++ b/layout/reftests/mathml/op-dict-11-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo accent</title> +</head> +<body> + <math> + <munderover><mtext>X</mtext><mo accent="true">→</mo><mo>O</mo></munderover> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-11.html b/layout/reftests/mathml/op-dict-11.html new file mode 100644 index 000000000..0c59e06bd --- /dev/null +++ b/layout/reftests/mathml/op-dict-11.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo accent</title> +</head> +<body> + <math> + <munderover><mtext>X</mtext><mo accent="false">→</mo><mo>O</mo></munderover> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-12-ref.html b/layout/reftests/mathml/op-dict-12-ref.html new file mode 100644 index 000000000..3365b47d3 --- /dev/null +++ b/layout/reftests/mathml/op-dict-12-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo movablelimits</title> +</head> +<body> + <math> + <munder> + <mo>∑</mo> + <mi>x</mi> + </munder> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-12.html b/layout/reftests/mathml/op-dict-12.html new file mode 100644 index 000000000..e9e761483 --- /dev/null +++ b/layout/reftests/mathml/op-dict-12.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo movablelimits</title> +</head> +<body> + <math> + <munder> + <mo movablelimits="true">∑</mo> + <mi>x</mi> + </munder> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-13-ref.html b/layout/reftests/mathml/op-dict-13-ref.html new file mode 100644 index 000000000..e9e761483 --- /dev/null +++ b/layout/reftests/mathml/op-dict-13-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo movablelimits</title> +</head> +<body> + <math> + <munder> + <mo movablelimits="true">∑</mo> + <mi>x</mi> + </munder> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-13.html b/layout/reftests/mathml/op-dict-13.html new file mode 100644 index 000000000..f49caf7d4 --- /dev/null +++ b/layout/reftests/mathml/op-dict-13.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict mo movablelimits</title> +</head> +<body> + <math> + <munder> + <mo movablelimits="false">∑</mo> + <mi>x</mi> + </munder> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-2-ref.html b/layout/reftests/mathml/op-dict-2-ref.html new file mode 100644 index 000000000..9c910f841 --- /dev/null +++ b/layout/reftests/mathml/op-dict-2-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict symmetric</title> +</head> +<body> + <math> + <mrow> + <mo symmetric="true">(</mo> + <mspace height="5em" depth="5em"/> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-2.html b/layout/reftests/mathml/op-dict-2.html new file mode 100644 index 000000000..59fd9be03 --- /dev/null +++ b/layout/reftests/mathml/op-dict-2.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict symmetric</title> +</head> +<body> + <math> + <mrow> + <mo>(</mo> + <mspace height="5em" depth="5em"/> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-3-ref.html b/layout/reftests/mathml/op-dict-3-ref.html new file mode 100644 index 000000000..9c910f841 --- /dev/null +++ b/layout/reftests/mathml/op-dict-3-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict symmetric</title> +</head> +<body> + <math> + <mrow> + <mo symmetric="true">(</mo> + <mspace height="5em" depth="5em"/> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-3.html b/layout/reftests/mathml/op-dict-3.html new file mode 100644 index 000000000..3a52c4d43 --- /dev/null +++ b/layout/reftests/mathml/op-dict-3.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict symmetric</title> +</head> +<body> + <math> + <mrow> + <mo symmetric="false">(</mo> + <mspace height="5em" depth="5em"/> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-4-ref.html b/layout/reftests/mathml/op-dict-4-ref.html new file mode 100644 index 000000000..b3b246cf6 --- /dev/null +++ b/layout/reftests/mathml/op-dict-4-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict stretchy</title> +</head> +<body> + <math> + <mrow> + <mo> ( </mo> + <mfrac> + <mi> a </mi> + <mi> b </mi> + </mfrac> + <mo> ) </mo> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-4.html b/layout/reftests/mathml/op-dict-4.html new file mode 100644 index 000000000..95e6b57a6 --- /dev/null +++ b/layout/reftests/mathml/op-dict-4.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict stretchy</title> +</head> +<body> + <math> + <mrow> + <mo stretchy="true"> ( </mo> + <mfrac> + <mi> a </mi> + <mi> b </mi> + </mfrac> + <mo stretchy="true"> ) </mo> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-5-ref.html b/layout/reftests/mathml/op-dict-5-ref.html new file mode 100644 index 000000000..b89697ade --- /dev/null +++ b/layout/reftests/mathml/op-dict-5-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict stretchy</title> +</head> +<body> + <math> + <mrow> + <mo stretchy="false"> ( </mo> + <mfrac> + <mi> a </mi> + <mi> b </mi> + </mfrac> + <mo> ) </mo> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-5.html b/layout/reftests/mathml/op-dict-5.html new file mode 100644 index 000000000..deaa4d33e --- /dev/null +++ b/layout/reftests/mathml/op-dict-5.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict stretchy</title> +</head> +<body> + <math> + <mrow> + <mo> ( </mo> + <mfrac> + <mi> a </mi> + <mi> b </mi> + </mfrac> + <mo> ) </mo> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-6-ref.html b/layout/reftests/mathml/op-dict-6-ref.html new file mode 100644 index 000000000..cb642c492 --- /dev/null +++ b/layout/reftests/mathml/op-dict-6-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict largeop</title> +</head> +<body> + <math displaystyle="true"> + <mrow> + <mo largeop="true">∑</mo> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-6.html b/layout/reftests/mathml/op-dict-6.html new file mode 100644 index 000000000..78dd19555 --- /dev/null +++ b/layout/reftests/mathml/op-dict-6.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict largeop</title> +</head> +<body> + <math displaystyle="true"> + <mrow> + <mo>∑</mo> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-7-ref.html b/layout/reftests/mathml/op-dict-7-ref.html new file mode 100644 index 000000000..78dd19555 --- /dev/null +++ b/layout/reftests/mathml/op-dict-7-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict largeop</title> +</head> +<body> + <math displaystyle="true"> + <mrow> + <mo>∑</mo> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-7.html b/layout/reftests/mathml/op-dict-7.html new file mode 100644 index 000000000..c9ff812a8 --- /dev/null +++ b/layout/reftests/mathml/op-dict-7.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict largeop</title> +</head> +<body> + <math displaystyle="true"> + <mrow> + <mo largeop="false">∑</mo> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-8-ref.html b/layout/reftests/mathml/op-dict-8-ref.html new file mode 100644 index 000000000..30c52bbb2 --- /dev/null +++ b/layout/reftests/mathml/op-dict-8-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict lspace and rspace</title> +</head> +<body> + <math> + <mrow> + <mi>x</mi><mo form="prefix" lspace="verythinmathspace" rspace="veryverythinmathspace">∀</mo><mi>y</mi> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-8.html b/layout/reftests/mathml/op-dict-8.html new file mode 100644 index 000000000..2cacbf52d --- /dev/null +++ b/layout/reftests/mathml/op-dict-8.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict lspace and rspace</title> +</head> +<body> + <math> + <mrow> + <mi>x</mi><mo form="prefix">∀</mo><mi>y</mi> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-9-ref.html b/layout/reftests/mathml/op-dict-9-ref.html new file mode 100644 index 000000000..09fad94d6 --- /dev/null +++ b/layout/reftests/mathml/op-dict-9-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict lspace and rspace</title> +</head> +<body> + <math> + <mrow> + <mi>x</mi><mo form="prefix" lspace="veryverythinmathspace" rspace="veryverythickmathspace">∀</mo><mi>y</mi> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/op-dict-9.html b/layout/reftests/mathml/op-dict-9.html new file mode 100644 index 000000000..2cacbf52d --- /dev/null +++ b/layout/reftests/mathml/op-dict-9.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> + <title>op-dict lspace and rspace</title> +</head> +<body> + <math> + <mrow> + <mi>x</mi><mo form="prefix">∀</mo><mi>y</mi> + </mrow> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/opentype-fraction-dynamic-linethickness-ref.html b/layout/reftests/mathml/opentype-fraction-dynamic-linethickness-ref.html new file mode 100644 index 000000000..36b99f5e5 --- /dev/null +++ b/layout/reftests/mathml/opentype-fraction-dynamic-linethickness-ref.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> + <head> + <title>mfrac linethickness</title> + <style type="text/css"> + math { + font-size: 10px; + } + @font-face { + font-family: fraction-1; + src: url(../fonts/math/fraction-1.otf); + } + </style> + </head> + <body> + <math style="font-family: fraction-1;"> + <mfrac> + <mspace height="1em" width="1em" mathbackground="red"/> + <mspace height="1em" width="1em" mathbackground="red"/> + </mfrac> + </math> + <math displaystyle="true" style="font-family: fraction-1;"> + <mfrac> + <mspace height="1em" width="1em" mathbackground="red"/> + <mspace height="1em" width="1em" mathbackground="red"/> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/opentype-fraction-dynamic-linethickness.html b/layout/reftests/mathml/opentype-fraction-dynamic-linethickness.html new file mode 100644 index 000000000..7d5ff4201 --- /dev/null +++ b/layout/reftests/mathml/opentype-fraction-dynamic-linethickness.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>mfrac linethickness</title> + <style type="text/css"> + math { + font-size: 10px; + } + @font-face { + font-family: fraction-1; + src: url(../fonts/math/fraction-1.otf); + } + </style> + <script type="text/javascript"> + function doTest() { + var mfracs = document.getElementsByTagName("mfrac"); + mfracs[0].removeAttribute("linethickness"); + mfracs[1].removeAttribute("linethickness"); + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </head> + <body> + <math style="font-family: fraction-1;"> + <mfrac linethickness="200%"> + <mspace height="1em" width="1em" mathbackground="red"/> + <mspace height="1em" width="1em" mathbackground="red"/> + </mfrac> + </math> + <math displaystyle="true" style="font-family: fraction-1;"> + <mfrac linethickness="200%"> + <mspace height="1em" width="1em" mathbackground="red"/> + <mspace height="1em" width="1em" mathbackground="red"/> + </mfrac> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/opentype-stretchy-ref.html b/layout/reftests/mathml/opentype-stretchy-ref.html new file mode 100644 index 000000000..9f0f9b43f --- /dev/null +++ b/layout/reftests/mathml/opentype-stretchy-ref.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <title>Open Type MATH - stretchy operator</title> + <meta charset="utf-8"/> + <style type="text/css"> + @font-face { + font-family: stretchy; + src: url(../fonts/math/stretchy.otf); + } + math { + font-family: stretchy; + font-size: 10px; + } + </style> + </head> + <body> + +<!-- +hstretchy = [ + 0x219C, # leftwards wave arrow + 0x219D, # rightwards wave arrow + 0x219E, # leftwards two headed arrow + 0x21A0, # rightwards two headed arrow + 0x21A2 # leftwards arrow with tail +] +vstretchy = [ + 0x219F, # upwards two headed arrow + 0x21A1, # downwards two headed arrow + 0x21A5, # upwards arrow from bar + 0x21A7, # downwards arrow from bar + 0x21A8 # up down arrow with base +] + +hstretchy[0] and vstretchy[0] have all the variants and the components. The others only have one of them. +--> + + <p> + <math> + <mstyle scriptsizemultiplier="1"> + <mover><mo stretchy="true">↝</mo><mspace width="1em" height="1px" mathbackground="red"/></mover> + <mover><mo stretchy="true">↞</mo><mspace width="2em" height="1px" mathbackground="red"/></mover> + <mover><mo stretchy="true">↠</mo><mspace width="3em" height="1px" mathbackground="red"/></mover> + <mover><mo stretchy="true">↢</mo><mspace width="15em" height="1px" mathbackground="red"/></mover> + </mstyle> + </math> + </p> + + <p> + <math><mrow><mo symmetric="false" stretchy="true" minsize="1em">↡</mo></mrow></math> + <math><mrow><mo symmetric="false" stretchy="true" minsize="2em">↥</mo></mrow></math> + <math><mrow><mo symmetric="false" stretchy="true" minsize="3em">↧</mo></mrow></math> + <math><mrow><mo symmetric="false" stretchy="true" minsize="15em">↨</mo></mrow></math> + </p> + +<!-- +DisplayOperatorMinHeight = 8em +largeop = [0x2A1B, 0x2A1C] # integral with overbar/underbar +largeop[0] has variants of size 7, 8, 9em +largeop[1] has one variant of size 8em. +--> + <p> + <math displaystyle="true"> + <mrow><mo>⨜</mo></mrow> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/opentype-stretchy.html b/layout/reftests/mathml/opentype-stretchy.html new file mode 100644 index 000000000..d86228ca0 --- /dev/null +++ b/layout/reftests/mathml/opentype-stretchy.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <title>Open Type MATH - stretchy operator</title> + <meta charset="utf-8"/> + <style type="text/css"> + @font-face { + font-family: stretchy; + src: url(../fonts/math/stretchy.otf); + } + math { + font-family: stretchy; + font-size: 10px; + } + </style> + </head> + <body> + +<!-- +hstretchy = [ + 0x219C, # leftwards wave arrow + 0x219D, # rightwards wave arrow + 0x219E, # leftwards two headed arrow + 0x21A0, # rightwards two headed arrow + 0x21A2 # leftwards arrow with tail +] +vstretchy = [ + 0x219F, # upwards two headed arrow + 0x21A1, # downwards two headed arrow + 0x21A5, # upwards arrow from bar + 0x21A7, # downwards arrow from bar + 0x21A8 # up down arrow with base +] + +hstretchy[0] and vstretchy[0] have all the variants and the components. The others only have one of them. +--> + + <p> + <math> + <mstyle scriptsizemultiplier="1"> + <mover><mo stretchy="true">↜</mo><mspace width="1em" height="1px" mathbackground="red"/></mover> + <mover><mo stretchy="true">↜</mo><mspace width="2em" height="1px" mathbackground="red"/></mover> + <mover><mo stretchy="true">↜</mo><mspace width="3em" height="1px" mathbackground="red"/></mover> + <mover><mo stretchy="true">↜</mo><mspace width="15em" height="1px" mathbackground="red"/></mover> + </mstyle> + </math> + </p> + + <p> + <math><mrow><mo symmetric="false" stretchy="true" minsize="1em">↟</mo></mrow></math> + <math><mrow><mo symmetric="false" stretchy="true" minsize="2em">↟</mo></mrow></math> + <math><mrow><mo symmetric="false" stretchy="true" minsize="3em">↟</mo></mrow></math> + <math><mrow><mo symmetric="false" stretchy="true" minsize="15em">↟</mo></mrow></math> + </p> + +<!-- +DisplayOperatorMinHeight = 8em +largeop = [0x2A1B, 0x2A1C] # integral with overbar/underbar +largeop[0] has variants of size 7, 8, 9em +largeop[1] has one variant of size 8em. +--> + <p> + <math displaystyle="true"> + <mrow><mo>⨛</mo></mrow> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/operator-1-ref.xhtml b/layout/reftests/mathml/operator-1-ref.xhtml new file mode 100644 index 000000000..2befdf244 --- /dev/null +++ b/layout/reftests/mathml/operator-1-ref.xhtml @@ -0,0 +1,9 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mn>3</mn> + <mo>+</mo> + <mn>2</mn> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/operator-1.xhtml b/layout/reftests/mathml/operator-1.xhtml new file mode 100644 index 000000000..e07da9e98 --- /dev/null +++ b/layout/reftests/mathml/operator-1.xhtml @@ -0,0 +1,9 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mn>3</mn> + <mo lspace="-5pt" rspace="-4pt">+</mo> + <mn>2</mn> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/overbar-width-1-ref.xhtml b/layout/reftests/mathml/overbar-width-1-ref.xhtml new file mode 100644 index 000000000..64e89f403 --- /dev/null +++ b/layout/reftests/mathml/overbar-width-1-ref.xhtml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <style type="text/css"> + html { background-color: grey; } + div { display: inline-block; + font-size: 30px; + line-height: 60px; /* Ensure space for overbar */ + border: 1px solid white; + padding: 2px; /* 10% error allowed in char selection */ + background-color: black; + color: red; } + </style> + </head> +<body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <mover> + <mi>ai</mi> + <mo>¯</mo> + </mover> + </mphantom> + </math> + </div> +</body> +</html> diff --git a/layout/reftests/mathml/overbar-width-1.xhtml b/layout/reftests/mathml/overbar-width-1.xhtml new file mode 100644 index 000000000..ab261d061 --- /dev/null +++ b/layout/reftests/mathml/overbar-width-1.xhtml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Check width of stretchy OverBar</title> + <style type="text/css"> + html { background-color: grey; } + div { display: inline-block; + font-size: 30px; + line-height: 60px; /* Ensure space for overbar */ + border: 1px solid white; + padding: 2px; /* 10% error allowed in char selection */ + background-color: black; + color: black; } + </style> + </head> +<body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mi>ai</mi> + <mo>¯</mo> + </mover> + </math> + </div> +</body> +</html> diff --git a/layout/reftests/mathml/positive-namedspace-ref.html b/layout/reftests/mathml/positive-namedspace-ref.html new file mode 100644 index 000000000..42e2fda7f --- /dev/null +++ b/layout/reftests/mathml/positive-namedspace-ref.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> + <head></head> + <body> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="0.0555555556em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="0.111111111em"></mspace> <mi>y</mi> + </mrow> + </math> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="0.166666667em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="0.222222222em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="0.277777778em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="0.333333333em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="0.388888889em"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/positive-namedspace.html b/layout/reftests/mathml/positive-namedspace.html new file mode 100644 index 000000000..d4f257280 --- /dev/null +++ b/layout/reftests/mathml/positive-namedspace.html @@ -0,0 +1,55 @@ +<!DOCTYPE html> +<html> + <head></head> + <body> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="veryverythinmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="verythinmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="thinmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="mediummathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="thickmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="verythickmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + <p> + <math> + <mrow> + <mi>x</mi> <mspace width="veryverythickmathspace"></mspace> <mi>y</mi> + </mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/quotes-1-ref.xhtml b/layout/reftests/mathml/quotes-1-ref.xhtml new file mode 100644 index 000000000..ff3ac0e4f --- /dev/null +++ b/layout/reftests/mathml/quotes-1-ref.xhtml @@ -0,0 +1,18 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<style type="text/css"> +body { font-family:sans-serif; } +p { height:2em; } +</style> +</head> +<body> +<p>:L_R</p> +<p>:L_"</p> +<p>:"_R</p> +<p>:L_"</p> +<p>:"_R</p> +<p>:"_"</p> +<p>:"_"</p> +<p>:"_"</p> +</body> +</html> diff --git a/layout/reftests/mathml/quotes-1.xhtml b/layout/reftests/mathml/quotes-1.xhtml new file mode 100644 index 000000000..e833966f8 --- /dev/null +++ b/layout/reftests/mathml/quotes-1.xhtml @@ -0,0 +1,39 @@ +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> +<head> +<style type="text/css"> +body { font-family:sans-serif; } +p { height:2em; } +</style> +</head> +<body> +<p>:<ms xmlns="http://www.w3.org/1998/Math/MathML" lquote="L" rquote="R">_</ms></p> +<p>:<ms id="m1" xmlns="http://www.w3.org/1998/Math/MathML">_</ms></p> +<p>:<ms id="m2" xmlns="http://www.w3.org/1998/Math/MathML">_</ms></p> +<p>:<ms id="m3" xmlns="http://www.w3.org/1998/Math/MathML" lquote="_">_</ms></p> +<p>:<ms id="m4" xmlns="http://www.w3.org/1998/Math/MathML" rquote="_">_</ms></p> +<p>:<ms id="m5" xmlns="http://www.w3.org/1998/Math/MathML" lquote="_" rquote="_">_</ms></p> +<p>:<ms id="m6" xmlns="http://www.w3.org/1998/Math/MathML" lquote="_">_</ms></p> +<p>:<ms id="m7" xmlns="http://www.w3.org/1998/Math/MathML" rquote="_">_</ms></p> +<script> +function doTest() { + var m1 = document.getElementById("m1"); + m1.setAttribute("lquote", "L"); + var m2 = document.getElementById("m2"); + m2.setAttribute("rquote", "R"); + var m3 = document.getElementById("m3"); + m3.setAttribute("lquote", "L"); + var m4 = document.getElementById("m4"); + m4.setAttribute("rquote", "R"); + var m5 = document.getElementById("m5"); + m5.removeAttribute("lquote"); + m5.removeAttribute("rquote"); + var m6 = document.getElementById("m6"); + m6.removeAttribute("lquote"); + var m7 = document.getElementById("m7"); + m7.removeAttribute("rquote"); + document.documentElement.removeAttribute('class'); +} +window.addEventListener("MozReftestInvalidate", doTest, false); +</script> +</body> +</html> diff --git a/layout/reftests/mathml/radicalbar-1.html b/layout/reftests/mathml/radicalbar-1.html new file mode 100644 index 000000000..326164c0f --- /dev/null +++ b/layout/reftests/mathml/radicalbar-1.html @@ -0,0 +1,48 @@ +<!DOCTYPE html> + <html> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-1a.html b/layout/reftests/mathml/radicalbar-1a.html new file mode 100644 index 000000000..bf2e5147a --- /dev/null +++ b/layout/reftests/mathml/radicalbar-1a.html @@ -0,0 +1,48 @@ +<!DOCTYPE html> + <html reftest-zoom=".5"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-1b.html b/layout/reftests/mathml/radicalbar-1b.html new file mode 100644 index 000000000..a469943e7 --- /dev/null +++ b/layout/reftests/mathml/radicalbar-1b.html @@ -0,0 +1,48 @@ +<!DOCTYPE html> + <html reftest-zoom=".4"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-1c.html b/layout/reftests/mathml/radicalbar-1c.html new file mode 100644 index 000000000..0485fe413 --- /dev/null +++ b/layout/reftests/mathml/radicalbar-1c.html @@ -0,0 +1,48 @@ +<!DOCTYPE html> + <html reftest-zoom=".3"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-1d.html b/layout/reftests/mathml/radicalbar-1d.html new file mode 100644 index 000000000..f89db4ded --- /dev/null +++ b/layout/reftests/mathml/radicalbar-1d.html @@ -0,0 +1,48 @@ +<!DOCTYPE html> + <html reftest-zoom=".2"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-2.html b/layout/reftests/mathml/radicalbar-2.html new file mode 100644 index 000000000..1870493cb --- /dev/null +++ b/layout/reftests/mathml/radicalbar-2.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-2a.html b/layout/reftests/mathml/radicalbar-2a.html new file mode 100644 index 000000000..9856fa868 --- /dev/null +++ b/layout/reftests/mathml/radicalbar-2a.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html reftest-zoom="0.5"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-2b.html b/layout/reftests/mathml/radicalbar-2b.html new file mode 100644 index 000000000..7df074c40 --- /dev/null +++ b/layout/reftests/mathml/radicalbar-2b.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html reftest-zoom="0.4"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-2c.html b/layout/reftests/mathml/radicalbar-2c.html new file mode 100644 index 000000000..138bad31a --- /dev/null +++ b/layout/reftests/mathml/radicalbar-2c.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html reftest-zoom="0.3"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-2d.html b/layout/reftests/mathml/radicalbar-2d.html new file mode 100644 index 000000000..7f1288242 --- /dev/null +++ b/layout/reftests/mathml/radicalbar-2d.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html reftest-zoom="0.2"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-3.html b/layout/reftests/mathml/radicalbar-3.html new file mode 100644 index 000000000..12fa3ae05 --- /dev/null +++ b/layout/reftests/mathml/radicalbar-3.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-3a.html b/layout/reftests/mathml/radicalbar-3a.html new file mode 100644 index 000000000..24ebfec8e --- /dev/null +++ b/layout/reftests/mathml/radicalbar-3a.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html reftest-zoom="0.5"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-3b.html b/layout/reftests/mathml/radicalbar-3b.html new file mode 100644 index 000000000..1aeafb6cb --- /dev/null +++ b/layout/reftests/mathml/radicalbar-3b.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html reftest-zoom="0.4"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-3c.html b/layout/reftests/mathml/radicalbar-3c.html new file mode 100644 index 000000000..e9e7e7ae5 --- /dev/null +++ b/layout/reftests/mathml/radicalbar-3c.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html reftest-zoom="0.3"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/radicalbar-3d.html b/layout/reftests/mathml/radicalbar-3d.html new file mode 100644 index 000000000..7d780af44 --- /dev/null +++ b/layout/reftests/mathml/radicalbar-3d.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + <html reftest-zoom="0.2"> + <head> + <!-- Default to invisible text --> + <style type="text/css" media="screen, print"> + .hidden { + color: white; + } + .visible { + color: black; + } + </style> + </head> + <body> + <!-- Nest successive radicals and test that the horizontal bar of one of them is drawn. + Because the comparison is for inequality with about:blank, at most one can be visible --> + <math> + <mrow> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="visible"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="1em" height="1em" /> + <msqrt class="hidden"> + <mspace width="20em" height="1em" /> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </msqrt> + </mrow> + </math> + + <!-- Block out all but the horizontal bar of the visible radical --> + <div style="position: absolute; top: 5px; left: 0px; + width: 20em; height: 10em; background: white;"></div> + </body> +</html> diff --git a/layout/reftests/mathml/reftest-stylo.list b/layout/reftests/mathml/reftest-stylo.list new file mode 100644 index 000000000..7e38f1ba1 --- /dev/null +++ b/layout/reftests/mathml/reftest-stylo.list @@ -0,0 +1,415 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +== dir-1.html dir-1.html +== dir-2.html dir-2.html +== dir-3.html dir-3.html +== dir-4.html dir-4.html +== dir-5.html dir-5.html +== dir-6.html dir-6.html +== dir-6a.html dir-6a.html +== dir-7.html dir-7.html +== dir-8.html dir-8.html +== dir-9.html dir-9.html +# Bug 787215 +== dir-10.html dir-10.html +random-if((B2G&&browserIsRemote)||Mulet) == dir-11.html dir-11.html +# Initial mulet triage: parity with B2G/B2G Desktop +== css-spacing-1.html css-spacing-1.html +== displaystyle-1.html displaystyle-1.html +== displaystyle-2.html displaystyle-2.html +== displaystyle-3.html displaystyle-3.html +random-if((B2G&&browserIsRemote)||Mulet) == displaystyle-4.html displaystyle-4.html +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) random-if(smallScreen&&Android) fuzzy(255,200) == mirror-op-1.html mirror-op-1.html +# Initial mulet triage: parity with B2G/B2G Desktop +== mirror-op-2.html mirror-op-2.html +== mirror-op-3.html mirror-op-3.html +== mirror-op-4.html mirror-op-4.html +== dynamic-mi.xhtml dynamic-mi.xhtml +== mphantom-1.html mphantom-1.html +== mphantom-2.html mphantom-2.html +== mfenced-1.xhtml mfenced-1.xhtml +== mfenced-2a.xhtml mfenced-2a.xhtml +== mfenced-2b.xhtml mfenced-2b.xhtml +== mfenced-3a.xhtml mfenced-3a.xhtml +== mfenced-3b.xhtml mfenced-3b.xhtml +== mfenced-3c.xhtml mfenced-3c.xhtml +== mfenced-3d.xhtml mfenced-3d.xhtml +== mfenced-4a.xhtml mfenced-4a.xhtml +== mfenced-4b.xhtml mfenced-4b.xhtml +== mfenced-5a.xhtml mfenced-5a.xhtml +== mfenced-5b.xhtml mfenced-5b.xhtml +== mfenced-5c.xhtml mfenced-5c.xhtml +== mfenced-5d.xhtml mfenced-5d.xhtml +== mfenced-6.html mfenced-6.html +== mfenced-7.html mfenced-7.html +== mfenced-8.html mfenced-8.html +== mfenced-9.html mfenced-9.html +fails-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == mfenced-10.html mfenced-10.html +# Windows versions without Cambria Math, see bug 670592 +== mfenced-11.html mfenced-11.html +skip-if(Mulet) == mfenced-12.html mfenced-12.html +# MULET: Bug 1144079: Re-enable Mulet mochitests and reftests taskcluster-specific disables +== mi-mathvariant-1.xhtml mi-mathvariant-1.xhtml +== mi-mathvariant-2.xhtml mi-mathvariant-2.xhtml +== mi-mathvariant-3.html mi-mathvariant-3.html +== non-spacing-accent-1.xhtml non-spacing-accent-1.xhtml +== overbar-width-1.xhtml overbar-width-1.xhtml +skip-if(B2G||Mulet) == quotes-1.xhtml quotes-1.xhtml +# Initial mulet triage: parity with B2G/B2G Desktop +== stretchy-underbar-1.xhtml stretchy-underbar-1.xhtml +== stretchy-munderover-1a.html stretchy-munderover-1a.html +== stretchy-munderover-1b.html stretchy-munderover-1b.html +== stretchy-munderover-1c.html stretchy-munderover-1c.html +== stretchy-munderover-1d.html stretchy-munderover-1d.html +== stretchy-munderover-1e.html stretchy-munderover-1e.html +== stretchy-munderover-2a.html stretchy-munderover-2a.html +== stretchy-munderover-2b.html stretchy-munderover-2b.html +== stretchy-munderover-2c.html stretchy-munderover-2c.html +== stretchy-munderover-2d.html stretchy-munderover-2d.html +== stretchy-munderover-2e.html stretchy-munderover-2e.html +== stretchy-munderover-2f.html stretchy-munderover-2f.html +== stretchy-munderover-2g.html stretchy-munderover-2g.html +== stretchy-munderover-3a.html stretchy-munderover-3a.html +== stretchy-munderover-3b.html stretchy-munderover-3b.html +== stretchy-munderover-3c.html stretchy-munderover-3c.html +== stretchy-munderover-3d.html stretchy-munderover-3d.html +== stretchy-msup-1a.html stretchy-msup-1a.html +== stretchy-msup-1b.html stretchy-msup-1b.html +== stretchy-msup-1c.html stretchy-msup-1c.html +== stretchy-msup-1d.html stretchy-msup-1d.html +== stretchy-mfenced-1a.html stretchy-mfenced-1a.html +== stretchy-mfenced-1b.html stretchy-mfenced-1b.html +== stretchy-mfenced-2a.html stretchy-mfenced-2a.html +== stretchy-mfenced-2b.html stretchy-mfenced-2b.html +== stretchy-mfenced-3a.html stretchy-mfenced-3a.html +== stretchy-mfenced-3b.html stretchy-mfenced-3b.html +== stretchy-mfenced-4a.html stretchy-mfenced-4a.html +== stretchy-mfenced-4b.html stretchy-mfenced-4b.html +== stretchy-mover-1a.html stretchy-mover-1a.html +== stretchy-mover-1b.html stretchy-mover-1b.html +== stretchy-mover-2a.html stretchy-mover-2a.html +== stretchy-mover-2b.html stretchy-mover-2b.html +== stretchy-mover-3.html stretchy-mover-3.html +== stretchy-largeop-1.html stretchy-largeop-1.html +== stretchy-largeop-2.html stretchy-largeop-2.html +== stretchy-largeop-3.html stretchy-largeop-3.html +== table-width-1.xhtml table-width-1.xhtml +== table-width-2.html table-width-2.html +== table-width-3.html table-width-3.html +== table-width-4.html table-width-4.html +== underbar-width-1.xhtml underbar-width-1.xhtml +skip == mathml-type-supported.xhtml mathml-type-supported.xhtml +== mtable-align-negative-rownumber.html mtable-align-negative-rownumber.html +== embellished-op-1-1.html embellished-op-1-1.html +== embellished-op-1-2.html embellished-op-1-2.html +== embellished-op-1-3.html embellished-op-1-3.html +== embellished-op-1-4.html embellished-op-1-4.html +== embellished-op-1-5.html embellished-op-1-5.html +== embellished-op-2-1.html embellished-op-2-1.html +== embellished-op-2-2.html embellished-op-2-2.html +== embellished-op-2-3.html embellished-op-2-3.html +== embellished-op-2-4.html embellished-op-2-4.html +== embellished-op-3-1.html embellished-op-3-1.html +== embellished-op-3-2.html embellished-op-3-2.html +== embellished-op-3-3.html embellished-op-3-3.html +== embellished-op-3-4.html embellished-op-3-4.html +== embellished-op-3-5.html embellished-op-3-5.html +== embellished-op-4-1.html embellished-op-4-1.html +== embellished-op-4-2.html embellished-op-4-2.html +== embellished-op-4-3.html embellished-op-4-3.html +== embellished-op-5-1.html embellished-op-5-1.html +== embellished-op-5-2.html embellished-op-5-2.html +random-if(winWidget&&!/^Windows\x20NT\x205\.1/.test(http.oscpu)) == semantics-1.xhtml semantics-1.xhtml +# Windows versions with Cambria Math +== semantics-2.html semantics-2.html +== semantics-3.html semantics-3.html +skip == semantics-4.html semantics-4.html +== mathcolor-1.xml mathcolor-1.xml +== mathcolor-2.xml mathcolor-2.xml +== mathcolor-3.xml mathcolor-3.xml +== mathcolor-4.xml mathcolor-4.xml +== mathbackground-1.xml mathbackground-1.xml +== mathbackground-2.xml mathbackground-2.xml +== mathbackground-3.xml mathbackground-3.xml +== mathbackground-4.xml mathbackground-4.xml +== mstyle-1.xhtml mstyle-1.xhtml +== mstyle-2.xhtml mstyle-2.xhtml +== mstyle-3.xhtml mstyle-3.xhtml +== mstyle-4.xhtml mstyle-4.xhtml +== mstyle-5.xhtml mstyle-5.xhtml +# Bug 787215 +== scale-stretchy-1.xhtml scale-stretchy-1.xhtml +== scale-stretchy-2.xhtml scale-stretchy-2.xhtml +fails-if(skiaContent&&OSX>=1010) == scale-stretchy-3.xhtml scale-stretchy-3.xhtml +== scale-stretchy-4.xhtml scale-stretchy-4.xhtml +== scale-stretchy-5.xhtml scale-stretchy-5.xhtml +== stretchy-1.html stretchy-1.html +== mspace-1.html mspace-1.html +== mpadded-1.html mpadded-1.html +== mpadded-2.html mpadded-2.html +== mpadded-3.html mpadded-3.html +== mpadded-4.html mpadded-4.html +== mpadded-5.html mpadded-5.html +== mpadded-1-2.html mpadded-1-2.html +== mpadded-6.html mpadded-6.html +fails-if(Mulet) == mpadded-7.html mpadded-7.html +# MULET: Bug 1144079: Re-enable Mulet mochitests and reftests taskcluster-specific disables +== mpadded-8.html mpadded-8.html +== mpadded-9.html mpadded-9.html +== math-display.html math-display.html +== scriptlevel-1.html scriptlevel-1.html +== scriptlevel-movablelimits-1.html scriptlevel-movablelimits-1.html +== munderover-align-accent-false.html munderover-align-accent-false.html +== munderover-align-accent-true.html munderover-align-accent-true.html +== munder-mover-align-accent-true.html munder-mover-align-accent-true.html +== munder-mover-align-accent-false.html munder-mover-align-accent-false.html +== mfrac-linethickness-1.xhtml mfrac-linethickness-1.xhtml +== mfrac-linethickness-2.xhtml mfrac-linethickness-2.xhtml +== mfrac-linethickness-3.xhtml mfrac-linethickness-3.xhtml +skip == mathml-negativespace.html mathml-negativespace.html +== negative-mspace-1.html negative-mspace-1.html +skip == link-1.xhtml link-1.xhtml +== munderover-empty-scripts.html munderover-empty-scripts.html +== positive-namedspace.html positive-namedspace.html +== mtable-align-whitespace.html mtable-align-whitespace.html +== mtable-width.html mtable-width.html +== mtable-rowlines-single-mtable-dynamic.html mtable-rowlines-single-mtable-dynamic.html +== mtable-rowlines-multi-mtable-dynamic.html mtable-rowlines-multi-mtable-dynamic.html +== mtable-rowalign-single-mtr.html mtable-rowalign-single-mtr.html +== mtable-rowalign-single-mtr-dynamic.html mtable-rowalign-single-mtr-dynamic.html +== mtable-rowalign-single-mtable.html mtable-rowalign-single-mtable.html +== mtable-rowalign-single-mtable-dynamic.html mtable-rowalign-single-mtable-dynamic.html +== mtable-rowalign-multi-mtable.html mtable-rowalign-multi-mtable.html +== mtable-rowalign-multi-mtable-dynamic.html mtable-rowalign-multi-mtable-dynamic.html +== mtable-columnlines-single-mtable-dynamic.html mtable-columnlines-single-mtable-dynamic.html +== mtable-columnlines-multi-mtable-dynamic.html mtable-columnlines-multi-mtable-dynamic.html +== mtable-columnalign-single-mtr.html mtable-columnalign-single-mtr.html +== mtable-columnalign-single-mtr-dynamic.html mtable-columnalign-single-mtr-dynamic.html +== mtable-columnalign-single-mtable.html mtable-columnalign-single-mtable.html +== mtable-columnalign-single-mtable-dynamic.html mtable-columnalign-single-mtable-dynamic.html +== mtable-columnalign-multi-mtr.html mtable-columnalign-multi-mtr.html +== mtable-columnalign-multi-mtr-dynamic.html mtable-columnalign-multi-mtr-dynamic.html +== mtable-columnalign-multi-mtable.html mtable-columnalign-multi-mtable.html +== mtable-columnalign-multi-mtable-dynamic.html mtable-columnalign-multi-mtable-dynamic.html +== maction-selection.html maction-selection.html +== maction-dynamic-embellished-op.html maction-dynamic-embellished-op.html +skip-if(B2G||Mulet) == maction-dynamic-1.html maction-dynamic-1.html +# bug 773482 +# Initial mulet triage: parity with B2G/B2G Desktop +== maction-dynamic-2.html maction-dynamic-2.html +== mo-lspace-rspace.html mo-lspace-rspace.html +== mo-lspace-rspace-2.html mo-lspace-rspace-2.html +== mo-lspace-rspace-3.html mo-lspace-rspace-3.html +== mo-lspace-rspace-4.html mo-lspace-rspace-4.html +== mo-invisibleoperators.html mo-invisibleoperators.html +== mo-invisibleoperators-2.html mo-invisibleoperators-2.html +== mo-glyph-size.html mo-glyph-size.html +skip-if(B2G||Mulet) == maction-dynamic-3.html maction-dynamic-3.html +# bug 773482 +# Initial mulet triage: parity with B2G/B2G Desktop +== whitespace-trim-1.html whitespace-trim-1.html +== whitespace-trim-2.html whitespace-trim-2.html +== whitespace-trim-3.html whitespace-trim-3.html +== whitespace-trim-4.html whitespace-trim-4.html +# Bug 787215 +== whitespace-trim-5.html whitespace-trim-5.html +random-if(winWidget&&!d2d) == opentype-stretchy.html opentype-stretchy.html +== opentype-fraction-dynamic-linethickness.html opentype-fraction-dynamic-linethickness.html +== operator-1.xhtml operator-1.xhtml +== scriptshift-1.xhtml scriptshift-1.xhtml +== number-size-1.xhtml number-size-1.xhtml +random-if((B2G&&browserIsRemote)||Mulet) fails-if(winWidget&&/^Windows\x20NT\x205\.1/.test(http.oscpu)) fuzzy-if(skiaContent,1,80) == multiscripts-1.html multiscripts-1.html +# B2G - slight height variation from font metrics +# Initial mulet triage: parity with B2G/B2G Desktop +skip == mathml-mmultiscript-base.html mathml-mmultiscript-base.html +== mathml-mmultiscript-mprescript.html mathml-mmultiscript-mprescript.html +== menclose-1a.html menclose-1a.html +== menclose-1b.html menclose-1b.html +== menclose-1c.html menclose-1c.html +== menclose-1d.html menclose-1d.html +== menclose-1e.html menclose-1e.html +== menclose-1f.html menclose-1f.html +== menclose-1g.html menclose-1g.html +== menclose-1h.html menclose-1h.html +== menclose-1i.html menclose-1i.html +== menclose-1j.html menclose-1j.html +skip == menclose-1k.html menclose-1k.html +== menclose-1l.html menclose-1l.html +== menclose-1m.html menclose-1m.html +== menclose-1n.html menclose-1n.html +== menclose-1o.html menclose-1o.html +== menclose-1p.html menclose-1p.html +== menclose-1q.html menclose-1q.html +fails-if(B2G) == menclose-2-actuarial.html menclose-2-actuarial.html +# B2G slight thickness variation +== menclose-2-bottom.html menclose-2-bottom.html +fails-if(B2G) == menclose-2-box.html menclose-2-box.html +# B2G slight thickness variation +== menclose-2-circle.html menclose-2-circle.html +== menclose-2-downdiagonalstrike.html menclose-2-downdiagonalstrike.html +== menclose-2-horizontalstrike.html menclose-2-horizontalstrike.html +fails-if(B2G) == menclose-2-left.html menclose-2-left.html +# B2G slight thickness variation +fuzzy-if(skiaContent,80,5) == menclose-2-longdiv.html menclose-2-longdiv.html +== menclose-2-right.html menclose-2-right.html +fails-if(B2G) == menclose-2-roundedbox.html menclose-2-roundedbox.html +# B2G slight thickness variation +fails-if(B2G) == menclose-2-top.html menclose-2-top.html +# B2G slight thickness variation +fails-if(B2G) == menclose-2-updiagonalarrow.html menclose-2-updiagonalarrow.html +# B2G slight thickness variation +== menclose-2-updiagonalstrike.html menclose-2-updiagonalstrike.html +== menclose-2-verticalstrike.html menclose-2-verticalstrike.html +fails-if(B2G) == menclose-2-roundedbox.html menclose-2-roundedbox.html +# B2G slight thickness variation +== menclose-2-phasorangle.html menclose-2-phasorangle.html +== menclose-3-box.html menclose-3-box.html +== menclose-3-madruwb.html menclose-3-madruwb.html +fails-if(B2G||Android||OSX==1006) == menclose-3-radical.html menclose-3-radical.html +# Bug 973917 +== menclose-3-default.html menclose-3-default.html +== menclose-3-invalid.html menclose-3-invalid.html +== menclose-3-multiple.html menclose-3-multiple.html +== menclose-3-unknown.html menclose-3-unknown.html +== menclose-4.html menclose-4.html +== menclose-5-actuarial.html menclose-5-actuarial.html +== menclose-5-bottom.html menclose-5-bottom.html +== menclose-5-box.html menclose-5-box.html +fails fuzzy-if(OSX,1,100) fuzzy-if(skiaContent,1,2) == menclose-5-circle.html menclose-5-circle.html +fuzzy-if(d2d,7,1) == menclose-5-downdiagonalstrike.html menclose-5-downdiagonalstrike.html +== menclose-5-horizontalstrike.html menclose-5-horizontalstrike.html +== menclose-5-left.html menclose-5-left.html +== menclose-5-longdiv.html menclose-5-longdiv.html +== menclose-5-madruwb.html menclose-5-madruwb.html +== menclose-5-radical.html menclose-5-radical.html +== menclose-5-right.html menclose-5-right.html +fails fuzzy-if(skiaContent,5,5) == menclose-5-roundedbox.html menclose-5-roundedbox.html +== menclose-5-top.html menclose-5-top.html +skip fuzzy-if(skiaContent,1,1) == menclose-5-updiagonalarrow.html menclose-5-updiagonalarrow.html +fuzzy-if(d2d,7,1) == menclose-5-updiagonalstrike.html menclose-5-updiagonalstrike.html +== menclose-5-verticalstrike.html menclose-5-verticalstrike.html +== menclose-5-phasorangle.html menclose-5-phasorangle.html +== menclose-6-actuarial.html menclose-6-actuarial.html +== menclose-6-bottom.html menclose-6-bottom.html +== menclose-6-box.html menclose-6-box.html +fails fuzzy-if(skiaContent,1,2) == menclose-6-circle.html menclose-6-circle.html +fuzzy-if(d2d,7,1) == menclose-6-downdiagonalstrike.html menclose-6-downdiagonalstrike.html +== menclose-6-horizontalstrike.html menclose-6-horizontalstrike.html +== menclose-6-left.html menclose-6-left.html +== menclose-6-longdiv.html menclose-6-longdiv.html +== menclose-6-madruwb.html menclose-6-madruwb.html +== menclose-6-radical.html menclose-6-radical.html +== menclose-6-right.html menclose-6-right.html +fails fuzzy-if(skiaContent,2,3) == menclose-6-roundedbox.html menclose-6-roundedbox.html +== menclose-6-top.html menclose-6-top.html +skip == menclose-6-updiagonalarrow.html menclose-6-updiagonalarrow.html +fuzzy-if(d2d,7,1) == menclose-6-updiagonalstrike.html menclose-6-updiagonalstrike.html +== menclose-6-verticalstrike.html menclose-6-verticalstrike.html +== menclose-6-phasorangle.html menclose-6-phasorangle.html +== mmultiscript-align.html mmultiscript-align.html +fails-if(winWidget&&!/^Windows\x20NT\x205\.1/.test(http.oscpu)) == subscript-italic-correction.html subscript-italic-correction.html +# Windows versions with Cambria Math, bug 961482 +fails-if(B2G||Android||/^Windows\x20NT\x205\.1/.test(http.oscpu)||OSX==1006) == mathvariant-1a.html mathvariant-1a.html +# Bug 1010679 +fails-if(B2G||Android||/^Windows\x20NT\x205\.1/.test(http.oscpu)||OSX==1006) == mathvariant-1b.html mathvariant-1b.html +# Bug 1010679 +fails-if(B2G||Android||/^Windows\x20NT\x205\.1/.test(http.oscpu)||OSX==1006) == mathvariant-1c.html mathvariant-1c.html +# Bug 1010679 +== mathvariant-1d.html mathvariant-1d.html +fails-if(B2G||Mulet||Android||/^Windows\x20NT\x205\.1/.test(http.oscpu)||OSX) == mathvariant-2.html mathvariant-2.html +# Bugs 1010678, 1010679 +== mathvariant-3.html mathvariant-3.html +== mathvariant-4.html mathvariant-4.html +== mathvariant-5.html mathvariant-5.html +== dtls-1.html dtls-1.html +== dtls-2.html dtls-2.html +== dtls-3.html dtls-3.html +== ssty-1.html ssty-1.html +== ssty-2.html ssty-2.html +== ssty-3.html ssty-3.html +== ssty-4.html ssty-4.html +== mathscript-1.html mathscript-1.html +== mathscript-2.html mathscript-2.html +== mo-accent-dynamic.html mo-accent-dynamic.html +== mo-movablelimits-dynamic.html mo-movablelimits-dynamic.html +== munderover-accent-dynamic.html munderover-accent-dynamic.html +== munderover-accentunder-dynamic.html munderover-accentunder-dynamic.html +== columnlines-1a.html columnlines-1a.html +== columnlines-1b.html columnlines-1b.html +== columnlines-1c.html columnlines-1c.html +== columnlines-2a.html columnlines-2a.html +== columnlines-2b.html columnlines-2b.html +== columnlines-3-1.html columnlines-3-1.html +== columnlines-3-2.html columnlines-3-2.html +== rowlines-1a.html rowlines-1a.html +== rowlines-1b.html rowlines-1b.html +== rowlines-1c.html rowlines-1c.html +== rowlines-2a.html rowlines-2a.html +== rowlines-2b.html rowlines-2b.html +== rowlines-3-1.html rowlines-3-1.html +== rowlines-3-2.html rowlines-3-2.html +== tablespacing-1.html tablespacing-1.html +== tablespacing-2.html tablespacing-2.html +== tablespacing-3.html tablespacing-3.html +== tablespacing-4.html tablespacing-4.html +== tablespacing-5.html tablespacing-5.html +== tablespacing-5a.html tablespacing-5a.html +== tablespacing-6.html tablespacing-6.html +== tablespacing-7.html tablespacing-7.html +== tablespacing-8a.html tablespacing-8a.html +== tablespacing-8b.html tablespacing-8b.html +== op-dict-1.html op-dict-1.html +== op-dict-2.html op-dict-2.html +== op-dict-3.html op-dict-3.html +== op-dict-4.html op-dict-4.html +== op-dict-5.html op-dict-5.html +== op-dict-6.html op-dict-6.html +== op-dict-7.html op-dict-7.html +== op-dict-8.html op-dict-8.html +== op-dict-9.html op-dict-9.html +== op-dict-10.html op-dict-10.html +== op-dict-11.html op-dict-11.html +== op-dict-12.html op-dict-12.html +== op-dict-13.html op-dict-13.html +== mfrac-A-1.html mfrac-A-1.html +== mfrac-A-2.html mfrac-A-2.html +== mfrac-A-3.html mfrac-A-3.html +== mfrac-A-4.html mfrac-A-4.html +== mfrac-A-5.html mfrac-A-5.html +== mfrac-A-6.html mfrac-A-6.html +== mfrac-A-7.html mfrac-A-7.html +== mfrac-A-8.html mfrac-A-8.html +== mfrac-B-1.html mfrac-B-1.html +== mfrac-B-2.html mfrac-B-2.html +== mfrac-B-3.html mfrac-B-3.html +== mfrac-B-4.html mfrac-B-4.html +== mfrac-B-5.html mfrac-B-5.html +== mfrac-B-6.html mfrac-B-6.html +== mfrac-B-7.html mfrac-B-7.html +fuzzy-if(OSX,1,100) fuzzy-if(skiaContent,1,14) == mfrac-C-1.html mfrac-C-1.html +== mfrac-C-2.html mfrac-C-2.html +== mfrac-C-3.html mfrac-C-3.html +== mfrac-C-4.html mfrac-C-4.html +fuzzy-if(OSX,1,100) fuzzy-if(skiaContent,1,14) == mfrac-D-1.html mfrac-D-1.html +== mfrac-D-2.html mfrac-D-2.html +== mfrac-D-3.html mfrac-D-3.html +== mfrac-D-4.html mfrac-D-4.html +== mfrac-E-1.html mfrac-E-1.html +skip == shadow-dom-1.html shadow-dom-1.html +pref(font.size.inflation.emPerLine,25) == font-inflation-1.html font-inflation-1.html +test-pref(font.minimum-size.x-math,40) == default-font.html default-font.html +== radicalbar-1.html radicalbar-1.html +== radicalbar-1a.html radicalbar-1a.html +== radicalbar-1b.html radicalbar-1b.html +== radicalbar-1c.html radicalbar-1c.html +== radicalbar-1d.html radicalbar-1d.html +== radicalbar-2.html radicalbar-2.html +== radicalbar-2a.html radicalbar-2a.html +== radicalbar-2b.html radicalbar-2b.html +== radicalbar-2c.html radicalbar-2c.html +== radicalbar-2d.html radicalbar-2d.html +== radicalbar-3.html radicalbar-3.html +== radicalbar-3a.html radicalbar-3a.html +== radicalbar-3b.html radicalbar-3b.html +== radicalbar-3c.html radicalbar-3c.html +== radicalbar-3d.html radicalbar-3d.html diff --git a/layout/reftests/mathml/reftest.list b/layout/reftests/mathml/reftest.list new file mode 100644 index 000000000..f45cc20f6 --- /dev/null +++ b/layout/reftests/mathml/reftest.list @@ -0,0 +1,386 @@ +== dir-1.html dir-1-ref.html +== dir-2.html dir-2-ref.html +random-if(gtkWidget) == dir-3.html dir-3-ref.html # bug 1309426 +== dir-4.html dir-4-ref.html +== dir-5.html dir-5-ref.html +== dir-6.html dir-6-ref.html +== dir-6a.html dir-6a-ref.html +== dir-7.html dir-7-ref.html +fails == dir-8.html dir-8-ref.html +fails == dir-9.html dir-9-ref.html # Bug 787215 +== dir-10.html dir-10-ref.html +== dir-11.html dir-11-ref.html +== css-spacing-1.html css-spacing-1-ref.html +pref(mathml.disabled,true) == disabled-scriptlevel-1.html disabled-scriptlevel-1-ref.html +pref(mathml.disabled,true) == disabled-scriptlevel-1.xhtml disabled-scriptlevel-1-ref.xhtml +== displaystyle-1.html displaystyle-1-ref.html +== displaystyle-2.html displaystyle-2-ref.html +== displaystyle-3.html displaystyle-3-ref.html +== displaystyle-4.html displaystyle-4-ref.html +random-if(smallScreen&&Android) fuzzy(255,200) == mirror-op-1.html mirror-op-1-ref.html +!= mirror-op-2.html mirror-op-2-ref.html +!= mirror-op-3.html mirror-op-3-ref.html +!= mirror-op-4.html mirror-op-4-ref.html +== dynamic-mi.xhtml dynamic-mi-ref.xhtml +== mphantom-1.html mphantom-1-ref.html +== mphantom-2.html mphantom-2-ref.html +== mfenced-1.xhtml mfenced-1-ref.xhtml +== mfenced-2a.xhtml mfenced-2-ref.xhtml +== mfenced-2b.xhtml mfenced-2-ref.xhtml +== mfenced-3a.xhtml mfenced-3-ref.xhtml +== mfenced-3b.xhtml mfenced-3-ref.xhtml +== mfenced-3c.xhtml mfenced-3-ref.xhtml +== mfenced-3d.xhtml mfenced-3-ref.xhtml +== mfenced-4a.xhtml mfenced-4-ref.xhtml +== mfenced-4b.xhtml mfenced-4-ref.xhtml +== mfenced-5a.xhtml mfenced-5-ref.xhtml +== mfenced-5b.xhtml mfenced-5-ref.xhtml +== mfenced-5c.xhtml mfenced-5-ref.xhtml +== mfenced-5d.xhtml mfenced-5-ref.xhtml +== mfenced-6.html mfenced-6-ref.html +== mfenced-7.html mfenced-7-ref.html +!= mfenced-8.html mfenced-8-ref.html +== mfenced-9.html mfenced-9-ref.html +fails-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == mfenced-10.html mfenced-10-ref.html # Windows versions without Cambria Math, see bug 670592 +fails-if(http.oscpu=="Linux\u0020x86_64") == mfenced-11.html mfenced-11-ref.html # bug 670592 +fails-if(http.oscpu=="Linux\u0020x86_64") == mfenced-12.html mfenced-12-ref.html # bug 670592 +== mi-mathvariant-1.xhtml mi-mathvariant-1-ref.xhtml +== mi-mathvariant-2.xhtml mi-mathvariant-2-ref.xhtml +!= mi-mathvariant-3.html mi-mathvariant-3-ref.html +!= non-spacing-accent-1.xhtml non-spacing-accent-1-ref.xhtml +== overbar-width-1.xhtml overbar-width-1-ref.xhtml +== quotes-1.xhtml quotes-1-ref.xhtml +!= stretchy-underbar-1.xhtml stretchy-underbar-1-ref.xhtml +!= stretchy-munderover-1a.html stretchy-munderover-1-ref.html +== stretchy-munderover-1b.html stretchy-munderover-1-ref.html +== stretchy-munderover-1c.html stretchy-munderover-1-ref.html +== stretchy-munderover-1d.html stretchy-munderover-1-ref.html +== stretchy-munderover-1e.html stretchy-munderover-1-ref.html +!= stretchy-munderover-2a.html stretchy-munderover-2-ref.html +== stretchy-munderover-2b.html stretchy-munderover-2-ref.html +== stretchy-munderover-2c.html stretchy-munderover-2-ref.html +== stretchy-munderover-2d.html stretchy-munderover-2-ref.html +== stretchy-munderover-2e.html stretchy-munderover-2-ref.html +== stretchy-munderover-2f.html stretchy-munderover-2-ref.html +== stretchy-munderover-2g.html stretchy-munderover-2-ref.html +!= stretchy-munderover-3a.html stretchy-munderover-3-ref.html +== stretchy-munderover-3b.html stretchy-munderover-3-ref.html +== stretchy-munderover-3c.html stretchy-munderover-3-ref.html +!= stretchy-munderover-3d.html stretchy-munderover-3-ref.html +== stretchy-msup-1a.html stretchy-msup-1-ref.html +== stretchy-msup-1b.html stretchy-msup-1-ref.html +== stretchy-msup-1c.html stretchy-msup-1-ref.html +== stretchy-msup-1d.html stretchy-msup-1-ref.html +!= stretchy-mfenced-1a.html stretchy-mfenced-1-ref.html +!= stretchy-mfenced-1b.html stretchy-mfenced-1-ref.html +== stretchy-mfenced-2a.html stretchy-mfenced-2-ref.html +!= stretchy-mfenced-2b.html stretchy-mfenced-2-ref.html +!= stretchy-mfenced-3a.html stretchy-mfenced-3-ref.html +!= stretchy-mfenced-3b.html stretchy-mfenced-3-ref.html +== stretchy-mfenced-4a.html stretchy-mfenced-4-ref.html +== stretchy-mfenced-4b.html stretchy-mfenced-4-ref.html +== stretchy-mover-1a.html stretchy-mover-1-ref.html +== stretchy-mover-1b.html stretchy-mover-1-ref.html +fails == stretchy-mover-2a.html stretchy-mover-2-ref.html +!= stretchy-mover-2b.html stretchy-mover-2-ref.html +== stretchy-mover-3.html stretchy-mover-3-ref.html +== stretchy-largeop-1.html stretchy-largeop-1-ref.html +== stretchy-largeop-2.html stretchy-largeop-2-ref.html +== stretchy-largeop-3.html stretchy-largeop-3-ref.html +== table-width-1.xhtml table-width-1-ref.xhtml +== table-width-2.html table-width-2-ref.html +== table-width-3.html table-width-3-ref.html +== table-width-4.html table-width-4-ref.html +== underbar-width-1.xhtml underbar-width-1-ref.xhtml +== mathml-type-supported.xhtml mathml-type-supported-ref.xml +== mtable-align-negative-rownumber.html mtable-align-negative-rownumber-ref.html +!= embellished-op-1-1.html embellished-op-1-1-ref.html +!= embellished-op-1-2.html embellished-op-1-2-ref.html +!= embellished-op-1-3.html embellished-op-1-3-ref.html +!= embellished-op-1-4.html embellished-op-1-4-ref.html +!= embellished-op-1-5.html embellished-op-1-5-ref.html +!= embellished-op-2-1.html embellished-op-2-1-ref.html +!= embellished-op-2-2.html embellished-op-2-2-ref.html +!= embellished-op-2-3.html embellished-op-2-3-ref.html +!= embellished-op-2-4.html embellished-op-2-4-ref.html +!= embellished-op-3-1.html embellished-op-3-1-ref.html +!= embellished-op-3-2.html embellished-op-3-2-ref.html +!= embellished-op-3-3.html embellished-op-3-3-ref.html +!= embellished-op-3-4.html embellished-op-3-4-ref.html +!= embellished-op-3-5.html embellished-op-3-5-ref.html +== embellished-op-4-1.html embellished-op-4-1-ref.html +== embellished-op-4-2.html embellished-op-4-2-ref.html +== embellished-op-4-3.html embellished-op-4-3-ref.html +== embellished-op-5-1.html embellished-op-5-ref.html +== embellished-op-5-2.html embellished-op-5-ref.html +fails-if(http.oscpu=="Linux\u0020x86_64") random-if(winWidget&&!/^Windows\x20NT\x205\.1/.test(http.oscpu)) == semantics-1.xhtml semantics-1-ref.xhtml # Windows versions with Cambria Math, Linux x86_64:bug 1309429 +== semantics-2.html semantics-2-ref.html +== semantics-3.html semantics-3-ref.html +== semantics-4.html semantics-4-ref.html +!= mathcolor-1.xml mathcolor-1-ref.xml +!= mathcolor-2.xml mathcolor-2-ref.xml +!= mathcolor-3.xml mathcolor-3-ref.xml +== mathcolor-4.xml mathcolor-4-ref.xml +!= mathbackground-1.xml mathbackground-1-ref.xml +!= mathbackground-2.xml mathbackground-2-ref.xml +!= mathbackground-3.xml mathbackground-3-ref.xml +== mathbackground-4.xml mathbackground-4-ref.xml +== mstyle-1.xhtml mstyle-1-ref.xhtml +== mstyle-2.xhtml mstyle-2-ref.xhtml +== mstyle-3.xhtml mstyle-3-ref.xhtml +== mstyle-4.xhtml mstyle-4-ref.xhtml +== mstyle-5.xhtml mstyle-5-ref.xhtml # Bug 787215 +== scale-stretchy-1.xhtml scale-stretchy-1-ref.xhtml +!= scale-stretchy-2.xhtml scale-stretchy-2-ref.xhtml +fails-if(skiaContent&&OSX>=1010) == scale-stretchy-3.xhtml scale-stretchy-3-ref.xhtml +!= scale-stretchy-4.xhtml scale-stretchy-4-ref.xhtml +!= scale-stretchy-5.xhtml scale-stretchy-5-ref.xhtml +!= stretchy-1.html stretchy-1-ref.html +== mspace-1.html mspace-1-ref.html +== mpadded-1.html mpadded-1-ref.html +== mpadded-2.html mpadded-2-ref.html +== mpadded-3.html mpadded-3-ref.html +== mpadded-4.html mpadded-4-ref.html +== mpadded-5.html mpadded-5-ref.html +== mpadded-1-2.html mpadded-1-2-ref.html +== mpadded-6.html mpadded-6-ref.html +random-if(gtkWidget) == mpadded-7.html mpadded-7-ref.html # bug 1309430 +random-if(gtkWidget) == mpadded-8.html mpadded-8-ref.html # bug 1309430 +random-if(gtkWidget) == mpadded-9.html mpadded-9-ref.html # bug 1309430 +== math-display.html math-display-ref.html +== scriptlevel-1.html scriptlevel-1-ref.html +== scriptlevel-movablelimits-1.html scriptlevel-movablelimits-1-ref.html +== munderover-align-accent-false.html munderover-align-accent-false-ref.html +== munderover-align-accent-true.html munderover-align-accent-true-ref.html +== munder-mover-align-accent-true.html munder-mover-align-accent-true-ref.html +== munder-mover-align-accent-false.html munder-mover-align-accent-false-ref.html +== mfrac-linethickness-1.xhtml mfrac-linethickness-1-ref.xhtml +== mfrac-linethickness-2.xhtml mfrac-linethickness-2-ref.xhtml +== mfrac-linethickness-3.xhtml mfrac-linethickness-3-ref.xhtml +== mathml-negativespace.html mathml-negativespace-ref.html +== negative-mspace-1.html negative-mspace-1-ref.html +!= link-1.xhtml link-ref.xhtml +== munderover-empty-scripts.html munderover-empty-scripts-ref.html +== positive-namedspace.html positive-namedspace-ref.html +== mtable-align-whitespace.html mtable-align-whitespace-ref.html +== mtable-width.html mtable-width-ref.html +== mtable-rowlines-single-mtable-dynamic.html mtable-rowlines-single-ref.html +== mtable-rowlines-multi-mtable-dynamic.html mtable-rowlines-multi-ref.html +== mtable-rowalign-single-mtr.html mtable-rowalign-single-ref.html +== mtable-rowalign-single-mtr-dynamic.html mtable-rowalign-single-ref.html +== mtable-rowalign-single-mtable.html mtable-rowalign-single-ref.html +== mtable-rowalign-single-mtable-dynamic.html mtable-rowalign-single-ref.html +== mtable-rowalign-multi-mtable.html mtable-rowalign-multi-ref.html +== mtable-rowalign-multi-mtable-dynamic.html mtable-rowalign-multi-ref.html +== mtable-columnlines-single-mtable-dynamic.html mtable-columnlines-single-ref.html +== mtable-columnlines-multi-mtable-dynamic.html mtable-columnlines-multi-ref.html +== mtable-columnalign-single-mtr.html mtable-columnalign-single-ref.html +== mtable-columnalign-single-mtr-dynamic.html mtable-columnalign-single-ref.html +== mtable-columnalign-single-mtable.html mtable-columnalign-single-ref.html +== mtable-columnalign-single-mtable-dynamic.html mtable-columnalign-single-ref.html +== mtable-columnalign-multi-mtr.html mtable-columnalign-multi-ref.html +== mtable-columnalign-multi-mtr-dynamic.html mtable-columnalign-multi-ref.html +== mtable-columnalign-multi-mtable.html mtable-columnalign-multi-ref.html +== mtable-columnalign-multi-mtable-dynamic.html mtable-columnalign-multi-ref.html +== maction-selection.html maction-selection-ref.html +== maction-dynamic-embellished-op.html maction-dynamic-embellished-op-ref.html +== maction-dynamic-1.html maction-dynamic-1-ref.html # bug 773482 +== maction-dynamic-2.html maction-dynamic-2-ref.html +== mo-lspace-rspace.html mo-lspace-rspace-ref.html +== mo-lspace-rspace-2.html mo-lspace-rspace-2-ref.html +== mo-lspace-rspace-3.html mo-lspace-rspace-3-ref.html +== mo-lspace-rspace-4.html mo-lspace-rspace-4-ref.html +== mo-invisibleoperators.html mo-invisibleoperators-ref.html +== mo-invisibleoperators-2.html mo-invisibleoperators-2-ref.html +random-if(gtkWidget) == mo-glyph-size.html mo-glyph-size-ref.html # bug 1309426 +== maction-dynamic-3.html maction-dynamic-3-ref.html # bug 773482 +== whitespace-trim-1.html whitespace-trim-1-ref.html +== whitespace-trim-2.html whitespace-trim-2-ref.html +== whitespace-trim-3.html whitespace-trim-3-ref.html +fails == whitespace-trim-4.html whitespace-trim-4-ref.html # Bug 787215 +== whitespace-trim-5.html whitespace-trim-5-ref.html +random-if(winWidget&&!d2d) == opentype-stretchy.html opentype-stretchy-ref.html +== opentype-fraction-dynamic-linethickness.html opentype-fraction-dynamic-linethickness-ref.html +== operator-1.xhtml operator-1-ref.xhtml +== scriptshift-1.xhtml scriptshift-1-ref.xhtml +== number-size-1.xhtml number-size-1-ref.xhtml +fuzzy-if(skiaContent,1,80) skip-if(winWidget) == multiscripts-1.html multiscripts-1-ref.html # Windows: bug 1314684 +== mathml-mmultiscript-base.html mathml-mmultiscript-base-ref.html +== mathml-mmultiscript-mprescript.html mathml-mmultiscript-mprescript-ref.html +!= menclose-1a.html menclose-1-ref.html +!= menclose-1b.html menclose-1-ref.html +!= menclose-1c.html menclose-1-ref.html +!= menclose-1d.html menclose-1-ref.html +!= menclose-1e.html menclose-1-ref.html +!= menclose-1f.html menclose-1-ref.html +!= menclose-1g.html menclose-1-ref.html +!= menclose-1h.html menclose-1-ref.html +!= menclose-1i.html menclose-1-ref.html +!= menclose-1j.html menclose-1-ref.html +!= menclose-1k.html menclose-1-ref.html +!= menclose-1l.html menclose-1-ref.html +!= menclose-1m.html menclose-1-ref.html +!= menclose-1n.html menclose-1-ref.html +!= menclose-1o.html menclose-1-ref.html +!= menclose-1p.html menclose-1-ref.html +!= menclose-1q.html menclose-1-ref.html +random-if(gtkWidget) == menclose-2-actuarial.html menclose-2-actuarial-ref.html # bug 1309426 +random-if(gtkWidget) == menclose-2-bottom.html menclose-2-bottom-ref.html # bug 1309426 +random-if(gtkWidget) == menclose-2-box.html menclose-2-box-ref.html # bug 1309426 +== menclose-2-circle.html menclose-2-circle-ref.html +== menclose-2-downdiagonalstrike.html menclose-2-downdiagonalstrike-ref.html +== menclose-2-horizontalstrike.html menclose-2-horizontalstrike-ref.html +== menclose-2-left.html menclose-2-left-ref.html +fuzzy-if(skiaContent,80,5) == menclose-2-longdiv.html menclose-2-longdiv-ref.html +random-if(gtkWidget) == menclose-2-right.html menclose-2-right-ref.html # bug 1309426 +random-if(gtkWidget) == menclose-2-roundedbox.html menclose-2-roundedbox-ref.html # bug 1309426 +== menclose-2-top.html menclose-2-top-ref.html +random-if(gtkWidget) == menclose-2-updiagonalarrow.html menclose-2-updiagonalarrow-ref.html # bug 1309426 +== menclose-2-updiagonalstrike.html menclose-2-updiagonalstrike-ref.html +== menclose-2-verticalstrike.html menclose-2-verticalstrike-ref.html +random-if(gtkWidget) == menclose-2-roundedbox.html menclose-2-roundedbox-ref.html # bug 1309426 +== menclose-2-phasorangle.html menclose-2-phasorangle-ref.html +== menclose-3-box.html menclose-3-box-ref.html +== menclose-3-madruwb.html menclose-3-madruwb-ref.html +fails-if(Android||OSX==1006) == menclose-3-radical.html menclose-3-radical-ref.html # Bug 973917 +== menclose-3-default.html menclose-3-default-ref.html +== menclose-3-invalid.html menclose-3-invalid-ref.html +== menclose-3-multiple.html menclose-3-multiple-ref.html +== menclose-3-unknown.html menclose-3-unknown.html +== menclose-4.html data:text/html,<body>Pass +== menclose-5-actuarial.html menclose-5-actuarial-ref.html +== menclose-5-bottom.html menclose-5-bottom-ref.html +== menclose-5-box.html menclose-5-box-ref.html +fuzzy-if(OSX,1,100) fuzzy-if(skiaContent,1,2) == menclose-5-circle.html menclose-5-circle-ref.html +fuzzy-if(d2d,7,1) == menclose-5-downdiagonalstrike.html menclose-5-downdiagonalstrike-ref.html +== menclose-5-horizontalstrike.html menclose-5-horizontalstrike-ref.html +== menclose-5-left.html menclose-5-left-ref.html +== menclose-5-longdiv.html menclose-5-longdiv-ref.html +== menclose-5-madruwb.html menclose-5-madruwb-ref.html +== menclose-5-radical.html menclose-5-radical-ref.html +== menclose-5-right.html menclose-5-right-ref.html +fuzzy-if(skiaContent,5,5) == menclose-5-roundedbox.html menclose-5-roundedbox-ref.html +== menclose-5-top.html menclose-5-top-ref.html +fuzzy-if(skiaContent,1,1) == menclose-5-updiagonalarrow.html menclose-5-updiagonalarrow-ref.html +fuzzy-if(d2d,7,1) == menclose-5-updiagonalstrike.html menclose-5-updiagonalstrike-ref.html +== menclose-5-verticalstrike.html menclose-5-verticalstrike-ref.html +== menclose-5-phasorangle.html menclose-5-phasorangle-ref.html +== menclose-6-actuarial.html menclose-6-ref.html +== menclose-6-bottom.html menclose-6-ref.html +== menclose-6-box.html menclose-6-ref.html +fuzzy-if(skiaContent,1,2) == menclose-6-circle.html menclose-6-ref.html +fuzzy-if(d2d,7,1) == menclose-6-downdiagonalstrike.html menclose-6-ref.html +== menclose-6-horizontalstrike.html menclose-6-ref.html +== menclose-6-left.html menclose-6-ref.html +== menclose-6-longdiv.html menclose-6-ref.html +== menclose-6-madruwb.html menclose-6-ref.html +== menclose-6-radical.html menclose-6-ref.html +== menclose-6-right.html menclose-6-ref.html +fuzzy-if(skiaContent,2,3) == menclose-6-roundedbox.html menclose-6-ref.html +== menclose-6-top.html menclose-6-ref.html +== menclose-6-updiagonalarrow.html menclose-6-ref.html +fuzzy-if(d2d,7,1) == menclose-6-updiagonalstrike.html menclose-6-ref.html +== menclose-6-verticalstrike.html menclose-6-ref.html +== menclose-6-phasorangle.html menclose-6-ref.html +== mmultiscript-align.html mmultiscript-align-ref.html +fails-if(winWidget&&!/^Windows\x20NT\x205\.1/.test(http.oscpu)) == subscript-italic-correction.html subscript-italic-correction-ref.html # Windows versions with Cambria Math, bug 961482 +fails-if(Android||/^Windows\x20NT\x205\.1/.test(http.oscpu)||OSX==1006) == mathvariant-1a.html mathvariant-1a-ref.html # Bug 1010679 +fails-if(Android||/^Windows\x20NT\x205\.1/.test(http.oscpu)||OSX==1006) == mathvariant-1b.html mathvariant-1b-ref.html # Bug 1010679 +fails-if(Android||/^Windows\x20NT\x205\.1/.test(http.oscpu)||OSX==1006) == mathvariant-1c.html mathvariant-1c-ref.html # Bug 1010679 +== mathvariant-1d.html mathvariant-1d-ref.html +fails-if(Android||/^Windows\x20NT\x205\.1/.test(http.oscpu)||OSX) == mathvariant-2.html mathvariant-2-ref.html # Bugs 1010678, 1010679 +== mathvariant-3.html mathvariant-3-ref.html +== mathvariant-4.html mathvariant-4-ref.html +== mathvariant-5.html mathvariant-5-ref.html +== dtls-1.html dtls-1-ref.html +== dtls-2.html dtls-2-ref.html +== dtls-3.html dtls-3-ref.html +== ssty-1.html ssty-1-ref.html +== ssty-2.html ssty-2-ref.html +== ssty-3.html ssty-3-ref.html +== ssty-4.html ssty-4-ref.html +== mathscript-1.html mathscript-1-ref.html +== mathscript-2.html mathscript-2-ref.html +== mo-accent-dynamic.html mo-accent-dynamic-ref.html +== mo-movablelimits-dynamic.html mo-movablelimits-dynamic-ref.html +== munderover-accent-dynamic.html munderover-accent-dynamic-ref.html +== munderover-accentunder-dynamic.html munderover-accentunder-dynamic-ref.html +== columnlines-1a.html columnlines-1-ref.html +!= columnlines-1b.html columnlines-1-ref.html +!= columnlines-1c.html columnlines-1-ref.html +== columnlines-2a.html columnlines-2-ref.html +== columnlines-2b.html columnlines-2-ref.html +!= columnlines-3-1.html columnlines-3-1-ref.html +== columnlines-3-2.html columnlines-3-2-ref.html +== rowlines-1a.html rowlines-1-ref.html +!= rowlines-1b.html rowlines-1-ref.html +!= rowlines-1c.html rowlines-1-ref.html +== rowlines-2a.html rowlines-2-ref.html +== rowlines-2b.html rowlines-2-ref.html +!= rowlines-3-1.html rowlines-3-1-ref.html +random-if(gtkWidget) == rowlines-3-2.html rowlines-3-2-ref.html # bug 1309426 +== tablespacing-1.html tablespacing-1-ref.html +== tablespacing-2.html tablespacing-2-ref.html +== tablespacing-3.html tablespacing-3-ref.html +== tablespacing-4.html tablespacing-4-ref.html +== tablespacing-5.html tablespacing-5-ref.html +== tablespacing-5a.html tablespacing-5a-ref.html +== tablespacing-6.html tablespacing-6-ref.html +== tablespacing-7.html tablespacing-7-ref.html +!= tablespacing-8a.html tablespacing-8-ref.html +!= tablespacing-8b.html tablespacing-8-ref.html +!= op-dict-1.html op-dict-1-ref.html +== op-dict-2.html op-dict-2-ref.html +!= op-dict-3.html op-dict-3-ref.html +== op-dict-4.html op-dict-4-ref.html +!= op-dict-5.html op-dict-5-ref.html +== op-dict-6.html op-dict-6-ref.html +!= op-dict-7.html op-dict-7-ref.html +== op-dict-8.html op-dict-8-ref.html +!= op-dict-9.html op-dict-9-ref.html +== op-dict-10.html op-dict-10-ref.html +!= op-dict-11.html op-dict-11-ref.html +== op-dict-12.html op-dict-12-ref.html +!= op-dict-13.html op-dict-13-ref.html +== mfrac-A-1.html mfrac-A-1-ref.html +== mfrac-A-2.html mfrac-A-2-ref.html +== mfrac-A-3.html mfrac-A-3-ref.html +== mfrac-A-4.html mfrac-A-4-ref.html +== mfrac-A-5.html mfrac-A-5-ref.html +== mfrac-A-6.html mfrac-A-6-ref.html +== mfrac-A-7.html mfrac-A-7-ref.html +== mfrac-A-8.html mfrac-A-8-ref.html +== mfrac-B-1.html mfrac-B-1-ref.html +== mfrac-B-2.html mfrac-B-2-3-ref.html +== mfrac-B-3.html mfrac-B-2-3-ref.html +== mfrac-B-4.html mfrac-B-4-5-ref.html +== mfrac-B-5.html mfrac-B-4-5-ref.html +== mfrac-B-6.html mfrac-B-6-7-ref.html +== mfrac-B-7.html mfrac-B-6-7-ref.html +fuzzy-if(OSX,1,100) fuzzy-if(skiaContent,1,14) == mfrac-C-1.html mfrac-C-1-ref.html +== mfrac-C-2.html mfrac-C-2-ref.html +== mfrac-C-3.html mfrac-C-3-ref.html +== mfrac-C-4.html mfrac-C-4-ref.html +fuzzy-if(OSX,1,100) fuzzy-if(skiaContent,1,14) == mfrac-D-1.html mfrac-D-1-ref.html +== mfrac-D-2.html mfrac-D-2-ref.html +== mfrac-D-3.html mfrac-D-3-ref.html +== mfrac-D-4.html mfrac-D-4-ref.html +== mfrac-E-1.html mfrac-E-1-ref.html +test-pref(dom.webcomponents.enabled,true) == shadow-dom-1.html shadow-dom-1-ref.html +pref(font.size.inflation.emPerLine,25) == font-inflation-1.html font-inflation-1-ref.html +test-pref(font.minimum-size.x-math,40) == default-font.html default-font-ref.html +!= radicalbar-1.html about:blank +!= radicalbar-1a.html about:blank +!= radicalbar-1b.html about:blank +!= radicalbar-1c.html about:blank +!= radicalbar-1d.html about:blank +!= radicalbar-2.html about:blank +!= radicalbar-2a.html about:blank +!= radicalbar-2b.html about:blank +!= radicalbar-2c.html about:blank +!= radicalbar-2d.html about:blank +!= radicalbar-3.html about:blank +!= radicalbar-3a.html about:blank +!= radicalbar-3b.html about:blank +!= radicalbar-3c.html about:blank +!= radicalbar-3d.html about:blank diff --git a/layout/reftests/mathml/rowlines-1-ref.html b/layout/reftests/mathml/rowlines-1-ref.html new file mode 100644 index 000000000..e5ea01a7d --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/rowlines-1a.html b/layout/reftests/mathml/rowlines-1a.html new file mode 100644 index 000000000..51073e3d5 --- /dev/null +++ b/layout/reftests/mathml/rowlines-1a.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 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/layout/reftests/mathml/rowlines-1b.html b/layout/reftests/mathml/rowlines-1b.html new file mode 100644 index 000000000..860edda59 --- /dev/null +++ b/layout/reftests/mathml/rowlines-1b.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 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/layout/reftests/mathml/rowlines-1c.html b/layout/reftests/mathml/rowlines-1c.html new file mode 100644 index 000000000..dd51f155f --- /dev/null +++ b/layout/reftests/mathml/rowlines-1c.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 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/layout/reftests/mathml/rowlines-2-ref.html b/layout/reftests/mathml/rowlines-2-ref.html new file mode 100644 index 000000000..f66962bad --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/rowlines-2a.html b/layout/reftests/mathml/rowlines-2a.html new file mode 100644 index 000000000..2dfa6cb04 --- /dev/null +++ b/layout/reftests/mathml/rowlines-2a.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"> + <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/layout/reftests/mathml/rowlines-2b.html b/layout/reftests/mathml/rowlines-2b.html new file mode 100644 index 000000000..3489239d1 --- /dev/null +++ b/layout/reftests/mathml/rowlines-2b.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 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/layout/reftests/mathml/rowlines-3-1-ref.html b/layout/reftests/mathml/rowlines-3-1-ref.html new file mode 100644 index 000000000..9f292f7ce --- /dev/null +++ b/layout/reftests/mathml/rowlines-3-1-ref.html @@ -0,0 +1,34 @@ +<!-- -*- 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 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/layout/reftests/mathml/rowlines-3-1.html b/layout/reftests/mathml/rowlines-3-1.html new file mode 100644 index 000000000..e40b2b7fa --- /dev/null +++ b/layout/reftests/mathml/rowlines-3-1.html @@ -0,0 +1,53 @@ +<!-- -*- 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> + + <!-- 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/layout/reftests/mathml/rowlines-3-2-ref.html b/layout/reftests/mathml/rowlines-3-2-ref.html new file mode 100644 index 000000000..01fe8ad0d --- /dev/null +++ b/layout/reftests/mathml/rowlines-3-2-ref.html @@ -0,0 +1,34 @@ +<!-- -*- 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 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/layout/reftests/mathml/rowlines-3-2.html b/layout/reftests/mathml/rowlines-3-2.html new file mode 100644 index 000000000..685970faf --- /dev/null +++ b/layout/reftests/mathml/rowlines-3-2.html @@ -0,0 +1,53 @@ +<!-- -*- 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> + + <!-- 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/layout/reftests/mathml/scale-stretchy-1-ref.xhtml b/layout/reftests/mathml/scale-stretchy-1-ref.xhtml new file mode 100644 index 000000000..e1182941c --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-1-ref.xhtml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Maximal size for a vertical arrow stretched by scaling</title> + </head> + + <body> + + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mspace height="55px" depth="55px" width="50px" + style="background: red;"/> + </mrow> + </math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/scale-stretchy-1.xhtml b/layout/reftests/mathml/scale-stretchy-1.xhtml new file mode 100644 index 000000000..76f0620df --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-1.xhtml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Maximal size for a vertical arrow stretched by scaling</title> + </head> + + <body> + + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mo style="color: blue;">⤋</mo> + </mrow> + </math> + </td> + </tr> + </table> + + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mspace height="55px" depth="55px" width="50px" + style="background: red;"/> + </mrow> + </math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/scale-stretchy-2-ref.xhtml b/layout/reftests/mathml/scale-stretchy-2-ref.xhtml new file mode 100644 index 000000000..e219fe0be --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-2-ref.xhtml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Minimal size for a vertical arrow stretched by scaling</title> + </head> + + <body> + + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mspace height="44px" depth="44px" width="50px" + style="background: green;"/> + </mrow> + </math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/scale-stretchy-2.xhtml b/layout/reftests/mathml/scale-stretchy-2.xhtml new file mode 100644 index 000000000..e89910586 --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-2.xhtml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Minimal size for a vertical arrow stretched by scaling</title> + </head> + + <body> + + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mo style="color: blue;">⤋</mo> + </mrow> + </math> + </td> + </tr> + </table> + + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mspace height="44px" depth="44px" width="50px" + style="background: green;"/> + </mrow> + </math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/scale-stretchy-3-ref.xhtml b/layout/reftests/mathml/scale-stretchy-3-ref.xhtml new file mode 100644 index 000000000..7a671c1ca --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-3-ref.xhtml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Maximal size for a horizontal arrow stretched by scaling</title> + </head> + + <body> + + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder accentunder="false"> + <mspace width="100px" height="5px" style="background: yellow"/> + <mspace width="110px" height="25px" depth="25px" + style="background: red;"/> + </munder> + </math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/scale-stretchy-3.xhtml b/layout/reftests/mathml/scale-stretchy-3.xhtml new file mode 100644 index 000000000..a21b03f61 --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-3.xhtml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Maximal size for a horizontal arrow stretched by scaling</title> + </head> + + <body> + + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder accentunder="false"> + <mspace width="100px" height="5px" style="background: yellow"/> + <mo style="color: blue;">⇛</mo> + </munder> + </math> + </td> + </tr> + </table> + + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder accentunder="false"> + <mspace width="100px" height="5px" style="background: yellow"/> + <mspace width="110px" height="25px" depth="25px" + style="background: red;"/> + </munder> + </math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/scale-stretchy-4-ref.xhtml b/layout/reftests/mathml/scale-stretchy-4-ref.xhtml new file mode 100644 index 000000000..87cb94d30 --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-4-ref.xhtml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Minimal size for a horizontal arrow stretched by scaling</title> + </head> + + <body> + + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mspace width="100px" height="5px" style="background: yellow"/> + <mspace width="88px" height="25px" depth="25px" + style="background: green;"/> + </munder> + </math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/scale-stretchy-4.xhtml b/layout/reftests/mathml/scale-stretchy-4.xhtml new file mode 100644 index 000000000..693fdc7ed --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-4.xhtml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Minimal size for a horizontal arrow stretched by scaling</title> + </head> + + <body> + + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mspace width="100px" height="5px" style="background: yellow"/> + <mo style="color: blue;">⇛</mo> + </munder> + </math> + </td> + </tr> + </table> + + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mspace width="100px" height="5px" style="background: yellow"/> + <mspace width="88px" height="25px" depth="25px" + style="background: green;"/> + </munder> + </math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/scale-stretchy-5-ref.xhtml b/layout/reftests/mathml/scale-stretchy-5-ref.xhtml new file mode 100644 index 000000000..8dc382e30 --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-5-ref.xhtml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Largeop in display mode stretched by scaling</title> +</head> + +<body> + +<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <mo largeop="false">⨌</mo> +</math> + +</body> +</html> diff --git a/layout/reftests/mathml/scale-stretchy-5.xhtml b/layout/reftests/mathml/scale-stretchy-5.xhtml new file mode 100644 index 000000000..a79e757d7 --- /dev/null +++ b/layout/reftests/mathml/scale-stretchy-5.xhtml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Largeop in display mode stretched by scaling</title> +</head> + +<body> + +<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <mo>⨌</mo> +</math> + +</body> +</html> diff --git a/layout/reftests/mathml/scriptlevel-1-ref.html b/layout/reftests/mathml/scriptlevel-1-ref.html new file mode 100644 index 000000000..193d29e1c --- /dev/null +++ b/layout/reftests/mathml/scriptlevel-1-ref.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>scriptlevel</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test scriptlevel on mstyle --> + <math> + <mstyle> + <mtext>O</mtext> + <mstyle mathsize="200%"><mtext>O</mtext></mstyle> + </mstyle> + </math> + + <!-- The mfrac element sets displaystyle to "false", or if it was already + false increments scriptlevel by 1, within numerator and denominator. + --> + <math> + <mstyle> + <mstyle displaystyle="false"> + <mfrac> + <mtext mathsize="200%">O</mtext> + <mtext mathsize="200%">O</mtext> + </mfrac> + </mstyle> + <mstyle displaystyle="true"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + </mstyle> + </math> + + <!-- The mroot element increments scriptlevel by 2, and sets + displaystyle to "false", within index, but leaves both attributes + unchanged within base. + The msqrt element leaves both attributes unchanged within its + argument. --> + <math> + <mstyle> + <mroot> + <mtext>O</mtext> + <mtext mathsize="400%">O</mtext> + </mroot> + <msqrt> + <mtext>O</mtext> + </msqrt> + </mstyle> + </math> + +<!-- + The msub element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within subscript, but leaves both attributes unchanged within base. + + The msup element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within superscript, but leaves both attributes unchanged within + base. + + The msubsup element [...] increments scriptlevel by 1, and sets displaystyle + to "false", within subscript and superscript, but leaves both attributes + unchanged within base. + + The mmultiscripts element increments scriptlevel by 1, and sets displaystyle + to "false", within each of its arguments except base, but leaves both + attributes unchanged within base. + --> + <math> + <mstyle> + <msub> + <mtext>O</mtext> + <mtext mathsize="200%">O</mtext> + </msub> + <msup> + <mtext>O</mtext> + <mtext mathsize="200%">O</mtext> + </msup> + <msubsup> + <mtext>O</mtext> + <mtext mathsize="200%">O</mtext> + <mtext mathsize="200%">O</mtext> + </msubsup> + <mmultiscripts> + <mtext>O</mtext> + <mtext mathsize="200%">O</mtext> + <mtext mathsize="200%">O</mtext> + <mprescripts/> + <mtext mathsize="200%">O</mtext> + <mtext mathsize="200%">O</mtext> + </mmultiscripts> + </mstyle> + </math> + +<!-- + The munder element [...] always sets displaystyle to "false" within the + underscript, but increments scriptlevel by 1 only when accentunder is + "false". Within base, it always leaves both attributes unchanged. + + The mover element [...] always sets displaystyle to "false" within + overscript, but increments scriptlevel by 1 only when accent is "false". + Within base, it always leaves both attributes unchanged. + + The munderover [..] always sets displaystyle to "false" within underscript + and overscript, but increments scriptlevel by 1 only when accentunder or + accent, respectively, are "false". Within base, it always leaves both + attributes unchanged. +--> + <math> + <mstyle> + <munder> + <mtext>O</mtext> + <mtext mathsize="200%">O</mtext> + </munder> + <mover> + <mtext>O</mtext> + <mtext mathsize="200%">O</mtext> + </mover> + <munderover> + <mtext>O</mtext> + <mtext mathsize="200%">O</mtext> + <mtext mathsize="200%">O</mtext> + </munderover> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/scriptlevel-1.html b/layout/reftests/mathml/scriptlevel-1.html new file mode 100644 index 000000000..9cd388f1c --- /dev/null +++ b/layout/reftests/mathml/scriptlevel-1.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <title>scriptlevel</title> + <meta charset="utf-8"/> + </head> + <body> + + <!-- Test scriptlevel on mstyle --> + <math> + <mstyle scriptsizemultiplier="2"> + <mtext>O</mtext> + <mstyle scriptlevel="1"><mtext>O</mtext></mstyle> + </mstyle> + </math> + + <!-- The mfrac element sets displaystyle to "false", or if it was already + false increments scriptlevel by 1, within numerator and denominator. + --> + <math> + <mstyle scriptsizemultiplier="2"> + <mstyle displaystyle="false"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + <mstyle displaystyle="true"> + <mfrac> + <mtext>O</mtext> + <mtext>O</mtext> + </mfrac> + </mstyle> + </mstyle> + </math> + + <!-- The mroot element increments scriptlevel by 2, and sets + displaystyle to "false", within index, but leaves both attributes + unchanged within base. + The msqrt element leaves both attributes unchanged within its + argument. --> + <math> + <mstyle scriptsizemultiplier="2"> + <mroot> + <mtext>O</mtext> + <mtext>O</mtext> + </mroot> + <msqrt> + <mtext>O</mtext> + </msqrt> + </mstyle> + </math> + +<!-- + The msub element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within subscript, but leaves both attributes unchanged within base. + + The msup element [...] increments scriptlevel by 1, and sets displaystyle to + "false", within superscript, but leaves both attributes unchanged within + base. + + The msubsup element [...] increments scriptlevel by 1, and sets displaystyle + to "false", within subscript and superscript, but leaves both attributes + unchanged within base. + + The mmultiscripts element increments scriptlevel by 1, and sets displaystyle + to "false", within each of its arguments except base, but leaves both + attributes unchanged within base. + --> + <math> + <mstyle scriptsizemultiplier="2"> + <msub> + <mtext>O</mtext> + <mtext>O</mtext> + </msub> + <msup> + <mtext>O</mtext> + <mtext>O</mtext> + </msup> + <msubsup> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </msubsup> + <mmultiscripts> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + <mprescripts/> + <mtext>O</mtext> + <mtext>O</mtext> + </mmultiscripts> + </mstyle> + </math> + +<!-- + The munder element [...] always sets displaystyle to "false" within the + underscript, but increments scriptlevel by 1 only when accentunder is + "false". Within base, it always leaves both attributes unchanged. + + The mover element [...] always sets displaystyle to "false" within + overscript, but increments scriptlevel by 1 only when accent is "false". + Within base, it always leaves both attributes unchanged. + + The munderover [..] always sets displaystyle to "false" within underscript + and overscript, but increments scriptlevel by 1 only when accentunder or + accent, respectively, are "false". Within base, it always leaves both + attributes unchanged. +--> + <math> + <mstyle scriptsizemultiplier="2"> + <munder> + <mtext>O</mtext> + <mtext>O</mtext> + </munder> + <mover> + <mtext>O</mtext> + <mtext>O</mtext> + </mover> + <munderover> + <mtext>O</mtext> + <mtext>O</mtext> + <mtext>O</mtext> + </munderover> + </mstyle> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/scriptlevel-movablelimits-1-ref.html b/layout/reftests/mathml/scriptlevel-movablelimits-1-ref.html new file mode 100644 index 000000000..bbffa910a --- /dev/null +++ b/layout/reftests/mathml/scriptlevel-movablelimits-1-ref.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head><title>Test accent/accentunder</title></head> + <body> + <math displaystyle="false"> + <munderover> + <mo>∑</mo> + <mi>a</mi> + <mi>b</mi> + </munderover> + </math> + <math displaystyle="false"> + <munder> + <mo>∑</mo> + <mi>a</mi> + </munder> + </math> + <math displaystyle="false"> + <mover> + <mo>∑</mo> + <mi>a</mi> + </mover> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/scriptlevel-movablelimits-1.html b/layout/reftests/mathml/scriptlevel-movablelimits-1.html new file mode 100644 index 000000000..f3ef2e53b --- /dev/null +++ b/layout/reftests/mathml/scriptlevel-movablelimits-1.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head><title>Test accent/accentunder</title></head> + <body> + <math displaystyle="false"> + <munderover accentunder="true" accent="true"> + <mo>∑</mo> + <mi>a</mi> + <mi>b</mi> + </munderover> + </math> + <math displaystyle="false"> + <munder accentunder="true"> + <mo>∑</mo> + <mi>a</mi> + </munder> + </math> + <math displaystyle="false"> + <mover accent="true"> + <mo>∑</mo> + <mi>a</mi> + </mover> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/scriptshift-1-ref.xhtml b/layout/reftests/mathml/scriptshift-1-ref.xhtml new file mode 100644 index 000000000..04eb6ca55 --- /dev/null +++ b/layout/reftests/mathml/scriptshift-1-ref.xhtml @@ -0,0 +1,30 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <msub> + <mi>x</mi> + <mn>2</mn> + </msub> + <mo>+</mo> + <msup> + <mi>x</mi> + <mn>2</mn> + </msup> + <mo>+</mo> + <msubsup> + <mi>x</mi> + <mn>2</mn> + <mn>3</mn> + </msubsup> + <mo>+</mo> + <mmultiscripts> + <mi> x </mi> + <mn>2</mn> + <mn>3</mn> + <mprescripts/> + <mn>4</mn> + <mn>5</mn> + </mmultiscripts> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/scriptshift-1.xhtml b/layout/reftests/mathml/scriptshift-1.xhtml new file mode 100644 index 000000000..67b7d201a --- /dev/null +++ b/layout/reftests/mathml/scriptshift-1.xhtml @@ -0,0 +1,30 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <msub subscriptshift="-5px"> + <mi>x</mi> + <mn>2</mn> + </msub> + <mo>+</mo> + <msup superscriptshift="-5px"> + <mi>x</mi> + <mn>2</mn> + </msup> + <mo>+</mo> + <msubsup subscriptshift="-5px" superscriptshift="-5px"> + <mi>x</mi> + <mn>2</mn> + <mn>3</mn> + </msubsup> + <mo>+</mo> + <mmultiscripts subscriptshift="-5px" superscriptshift="-5px"> + <mi> x </mi> + <mn>2</mn> + <mn>3</mn> + <mprescripts/> + <mn>4</mn> + <mn>5</mn> + </mmultiscripts> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/semantics-1-ref.xhtml b/layout/reftests/mathml/semantics-1-ref.xhtml new file mode 100644 index 000000000..567173b43 --- /dev/null +++ b/layout/reftests/mathml/semantics-1-ref.xhtml @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=utf-8" /> + <title>Various tests for semantics</title> +</head> + +<body> +<!-- displaystyle (bug 468059) --> +<p><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <semantics> + <mstyle displaystyle="true"> + <munderover> + <mo movablelimits="true">□■□</mo> + <mtext>■□■□■□</mtext> + <mtext>■□■□■□</mtext> + </munderover> + </mstyle> + </semantics> +</math></p> + +<!-- embellished operator (bug 21479) --> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mspace width="300px" height="10px" mathbackground="black"></mspace> + <mo>¯</mo> + </mover> +</math></p> + +<!-- unwanted whitespace (bug 512418) --> +<p>■□■□■□<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mrow> + <mo>lcm</mo> + <mo>(</mo> + <mi>a</mi> + <mo>,</mo> + <mi>b</mi> + <mo>)</mo> + </mrow> + <mo>=</mo> + <mfrac> + <mrow> + <mo>(</mo> + <mi>a</mi> + <mo>⁢</mo> + <mi>b</mi> + <mo>)</mo> + </mrow> + <mrow> + <mo>gcd</mo> + <mo>(</mo> + <mi>a</mi> + <mo>,</mo> + <mi>b</mi> + <mo>)</mo> + </mrow> + </mfrac> + </mrow> +</math>■□■□■□</p> + +<!-- maction and semantics (bug 523037) --> +<p>■□■□■□<math xmlns="http://www.w3.org/1998/Math/MathML"> + <maction actiontype="toggle" selection="3"> + <mn>1</mn> + <mn>2</mn> + <mn>3</mn> + <mn>4</mn> + <mn>5</mn> + </maction> +</math>■□■□■□</p> + +<!-- maction and semantics (bug 523045) --> +<p>■□■□■□<math xmlns="http://www.w3.org/1998/Math/MathML"> + <maction actiontype="toggle" selection="4"> + <mn>1</mn> + <mn>2</mn> + <mn>3</mn> + <mn>4</mn> + <mn>5</mn> + </maction> +</math>■□■□■□</p> +</body> +</html> diff --git a/layout/reftests/mathml/semantics-1.xhtml b/layout/reftests/mathml/semantics-1.xhtml new file mode 100644 index 000000000..52dc05b89 --- /dev/null +++ b/layout/reftests/mathml/semantics-1.xhtml @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" + content="application/xhtml+xml; charset=utf-8" /> + <title>Various tests for semantics</title> +</head> + +<body> +<!-- displaystyle (bug 468059) --> +<p><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <semantics> + <munderover> + <mo movablelimits="true">□■□</mo> + <mtext>■□■□■□</mtext> + <mtext>■□■□■□</mtext> + </munderover> + </semantics> +</math></p> + +<!-- embellished operator (bug 21479) --> +<p><math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mspace width="300px" height="10px" mathbackground="black"></mspace> + <semantics><mo>¯</mo></semantics> + </mover> +</math></p> + +<!-- unwanted whitespace (bug 512418) --> +<p>■□■□■□<math xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics> + <mrow> + <mrow> + <mo>lcm</mo> + <mo>(</mo> + <mi>a</mi> + <mo>,</mo> + <mi>b</mi> + <mo>)</mo> + </mrow> + <mo>=</mo> + <mfrac> + <mrow> + <mo>(</mo> + <mi>a</mi> + <mo>⁢</mo> + <mi>b</mi> + <mo>)</mo> + </mrow> + <mrow> + <mo>gcd</mo> + <mo>(</mo> + <mi>a</mi> + <mo>,</mo> + <mi>b</mi> + <mo>)</mo> + </mrow> + </mfrac> + </mrow> + </semantics> +</math>■□■□■□</p> + +<!-- maction and semantics (bug 523037) --> +<p>■□■□■□<math xmlns="http://www.w3.org/1998/Math/MathML"> + <maction actiontype="toggle" selection="3"> + <mn>1</mn> + <mn>2</mn> + <semantics> + <mn>3</mn> + <annotation encoding="text">three</annotation> + </semantics> + <semantics> + <mn>4</mn> + <annotation encoding="text">four</annotation> + </semantics> + <mn>5</mn> + </maction> +</math>■□■□■□</p> + +<!-- maction and semantics (bug 523045) --> +<p>■□■□■□<math xmlns="http://www.w3.org/1998/Math/MathML"> + <maction actiontype="toggle" selection="4"> + <mn>1</mn> + <mn>2</mn> + <semantics> + <mn>3</mn> + <annotation encoding="text">three</annotation> + </semantics> + <semantics> + <mn>4</mn> + <annotation encoding="text">four</annotation> + </semantics> + <mn>5</mn> + </maction> +</math>■□■□■□</p> +</body> +</html> diff --git a/layout/reftests/mathml/semantics-2-ref.html b/layout/reftests/mathml/semantics-2-ref.html new file mode 100644 index 000000000..7cb7a3590 --- /dev/null +++ b/layout/reftests/mathml/semantics-2-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> + <title>Various tests for semantics</title> + <meta charset="utf-8"/> +</head> + +<body> + <p>Empty semantics (invalid): <math><maction></maction></math></p> + <p>annotation (invalid): <math><mrow><mtext>annotation</mtext></mrow></math></p> + <p>annotation-xml (invalid): <math><mrow><mrow><mtext>annotation-xml</mtext></mrow></mrow></math></p> + <p>presentation MathML (no annotations): <math><mrow><mtext>presentation MathML</mtext></mrow></math></p> + <p>content MathML (no annotations): <math><maction actiontype="toggle"><csymbol>content MathML</csymbol></maction></math></p> + <p>presentation MathML ; annotation: <math><mrow><mtext>presentation MathML</mtext></mrow></math></p> + <p>presentation MathML ; annotation-xml: <math><mrow><mtext>presentation MathML</mtext></mrow></math></p> + <p>content MathML ; annotation: <math><mrow><mtext>annotation</mtext></mrow></math></p> + <p>content MathML ; annotation-xml: <math><mrow><mrow><mtext>annotation-xml</mtext></mrow></mrow></math></p> +</body> +</html> diff --git a/layout/reftests/mathml/semantics-2.html b/layout/reftests/mathml/semantics-2.html new file mode 100644 index 000000000..1f18cd2f9 --- /dev/null +++ b/layout/reftests/mathml/semantics-2.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> + <title>Various tests for semantics</title> + <meta charset="utf-8"/> +</head> + +<body> + <p>Empty semantics (invalid): <math><semantics></semantics></math></p> + <p>annotation (invalid): <math><semantics><annotation>annotation</annotation></semantics></math></p> + <p>annotation-xml (invalid): <math><semantics><annotation-xml encoding="MathML-Presentation"><mtext>annotation-xml</mtext></annotation-xml></semantics></math></p> + <p>presentation MathML (no annotations): <math><semantics><mtext>presentation MathML</mtext></semantics></math></p> + <p>content MathML (no annotations): <math><semantics><csymbol>content MathML</csymbol></semantics></math></p> + <p>presentation MathML ; annotation: <math><semantics><mtext>presentation MathML</mtext><annotation>annotation</annotation></semantics></math></p> + <p>presentation MathML ; annotation-xml: <math><semantics><mtext>presentation MathML</mtext><annotation-xml encoding="application/mathml-presentation+xml"><mtext>annotation-xml</mtext></annotation-xml></semantics></math></p> + <p>content MathML ; annotation: <math><semantics><csymbol>content MathML</csymbol><annotation>annotation</annotation></semantics></math></p> + <p>content MathML ; annotation-xml: <math><semantics><csymbol>content MathML</csymbol><annotation-xml encoding="application/mathml-presentation+xml"><mtext>annotation-xml</mtext></annotation-xml></semantics></math></p> +</body> +</html> diff --git a/layout/reftests/mathml/semantics-3-ref.html b/layout/reftests/mathml/semantics-3-ref.html new file mode 100644 index 000000000..99b752f34 --- /dev/null +++ b/layout/reftests/mathml/semantics-3-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> +<head> + <title>Various tests for mrow</title> + <meta charset="utf-8"/> +</head> + +<body> + <p>annotation 1: <math><mrow><mtext>annotation</mtext></mrow></math></p> + <p>annotation 2: <math><mrow><mtext>\sin x + 5</mtext></mrow></math></p> + <p>annotation 3: <math><mrow><mtext>annotation</mtext></mrow></math></p> + + <p>annotation-xml 1: <math><mrow><mrow><mtext>application/mathml-presentation+xml</mtext></mrow></mrow></math></p> + <p>annotation-xml 2: <math><mrow><mrow><mtext>MathML-Presentation</mtext></mrow></mrow></math></p> + <p>annotation-xml 3: <math><mrow><mtext><svg xmlns="http://www.w3.org/2000/svg" height="2em"><text y="1em">image/svg+xml</text></svg></mtext></mrow></math></p> + <p>annotation-xml 4: <math><mrow><mtext><svg xmlns="http://www.w3.org/2000/svg" height="2em"><text y="1em">SVG1.1</text></svg></mtext></mrow></math></p> + <p>annotation-xml 5: <math><mrow><mtext><html xmlns="http://www.w3.org/1999/xhtml"><head><title>application/xhtml+xml</title></head><body><p>application/xhtml+xml</p></body></html></mtext></mrow></math></p> + <p>annotation-xml 6: <math><mrow><mtext><html><head><title>text/html</title></head><body><p>text/html</p></body></html></mtext></mrow></math></p> + <p>annotation-xml 7: <math><mrow><mrow><mtext>annotation-xml</mtext></mrow></mrow></math></p></body> +</html> diff --git a/layout/reftests/mathml/semantics-3.html b/layout/reftests/mathml/semantics-3.html new file mode 100644 index 000000000..92a93c774 --- /dev/null +++ b/layout/reftests/mathml/semantics-3.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> +<head> + <title>Various tests for semantics</title> + <meta charset="utf-8"/> +</head> + +<body> + <p>annotation 1: <math><semantics><csymbol>Content MathML</csymbol><annotation>annotation</annotation><annotation>error</annotation><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml></semantics></math></p> + <p>annotation 2: <math><semantics><csymbol>Content MathML</csymbol><annotation encoding="application/x-tex">\sin x + 5</annotation><annotation>error</annotation><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml></semantics></math></p> + <p>annotation 3: <math><semantics><csymbol>Content MathML</csymbol><annotation src="external-resource">error</annotation><annotation>annotation</annotation><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml></semantics></math></p> + + <p>annotation-xml 1: <math><semantics><csymbol>Content MathML</csymbol><annotation-xml encoding="application/mathml-presentation+xml"><mtext>application/mathml-presentation+xml</mtext></annotation-xml><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml><annotation>error</annotation></semantics></math></p> + <p>annotation-xml 2: <math><semantics><csymbol>Content MathML</csymbol><annotation-xml encoding="MathML-Presentation"><mtext>MathML-Presentation</mtext></annotation-xml><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml><annotation>error</annotation></semantics></math></p> + <p>annotation-xml 3: <math><semantics><csymbol>Content MathML</csymbol><annotation-xml encoding="image/svg+xml"><svg xmlns="http://www.w3.org/2000/svg" height="2em"><text y="1em">image/svg+xml</text></svg></annotation-xml><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml><annotation>error</annotation></semantics></math></p> + <p>annotation-xml 4: <math><semantics><csymbol>Content MathML</csymbol><annotation-xml encoding="SVG1.1"><svg xmlns="http://www.w3.org/2000/svg" height="2em"><text y="1em">SVG1.1</text></svg></annotation-xml><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml><annotation>error</annotation></semantics></math></p> + <p>annotation-xml 5: <math><semantics><csymbol>Content MathML</csymbol><annotation-xml encoding="application/xhtml+xml"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>application/xhtml+xml</title></head><body><p>application/xhtml+xml</p></body></html></annotation-xml><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml><annotation>error</annotation></math></p> + <p>annotation-xml 6: <math><semantics><csymbol>Content MathML</csymbol><annotation-xml encoding="text/html"><html><head><title>text/html</title></head><body><p>text/html</p></body></html></annotation-xml><annotation-xml encoding="application/mathml-presentation+xml"><mtext>error</mtext></annotation-xml><annotation>error</annotation></semantics></math></p> + <p>annotation-xml 7: <math><semantics><csymbol>Content MathML</csymbol><annotation-xml encoding="unknown"><mtext>error</mtext></annotation-xml><annotation-xml encoding="application/mathml-presentation+xml"><mtext>annotation-xml</mtext></annotation-xml><annotation>error</annotation></semantics></math></p> +</body> +</html> diff --git a/layout/reftests/mathml/semantics-4-ref.html b/layout/reftests/mathml/semantics-4-ref.html new file mode 100644 index 000000000..b618df465 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/semantics-4.html b/layout/reftests/mathml/semantics-4.html new file mode 100644 index 000000000..ff9dd0c05 --- /dev/null +++ b/layout/reftests/mathml/semantics-4.html @@ -0,0 +1,36 @@ +<!DOCTYPE HTML> +<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/layout/reftests/mathml/shadow-dom-1-ref.html b/layout/reftests/mathml/shadow-dom-1-ref.html new file mode 100644 index 000000000..6940cfc77 --- /dev/null +++ b/layout/reftests/mathml/shadow-dom-1-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<meta charset="utf-8"> +<title>Test for bug 1066554 - Shadow DOM loads MathML stylesheets as needed</title> +<body> + <math> + <msup> + <mi>X</mi> + <mi>X</mi> + </msup> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/shadow-dom-1.html b/layout/reftests/mathml/shadow-dom-1.html new file mode 100644 index 000000000..547253a3c --- /dev/null +++ b/layout/reftests/mathml/shadow-dom-1.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<meta charset="utf-8"> +<title>Test for bug 1066554 - Shadow DOM loads MathML stylesheets as needed</title> +<body> + <div id="x"></div> + <script> + function insertShadowMathML() { + var x = document.getElementById("x"); + x.createShadowRoot(); + x.shadowRoot.innerHTML = + '<math><msup><mi>X</mi><mi>X</mi></msup></math>'; + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", insertShadowMathML, false); + </script> +</body> +</html> diff --git a/layout/reftests/mathml/ssty-1-ref.html b/layout/reftests/mathml/ssty-1-ref.html new file mode 100644 index 000000000..e5be48622 --- /dev/null +++ b/layout/reftests/mathml/ssty-1-ref.html @@ -0,0 +1,337 @@ +<!DOCTYPE html> +<head> + + <!-- This font only has glyphs defined for 'A', 'B', 'C' and 'D', and is + designed purely for testing ssty functionality + The glyphs for 'A' and 'D' are identical, the difference between them is + that 'A' supports the ssty font feature. + 'A' with ssty = 1 maps to 'B' + 'A' with ssty = 2 maps to 'C'--> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "sstyfont"; + src: url("ssty.woff"); + } + </style> +</head> +<body> + + <!-- Test whether the ssty font feature setting is used appropriately for + supscripts et al. + Assumes NS_MATHML_DEFAULT_SCRIPT_SIZE_MULTIPLIER is 0.71--> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <msup> + <mo>D</mo> + <msup> + <mo>B</mo> + <msup> + <mo>C</mo> + <mo>C</mo> <!-- ssty value capped at 2 --> + </msup> + </msup> + </msup> + + <msub> + <mo>D</mo> + <msub> + <mo>B</mo> + <msub> + <mo>C</mo> + <mo>C</mo> + </msub> + </msub> + </msub> + + <msubsup> + <mo>D</mo> + <msubsup> + <mo>B</mo> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + </msubsup> + <msubsup> + <mo>B</mo> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + </msubsup> + </msubsup> + + <mmultiscripts> + <mo>D</mo> + <mmultiscripts> + <mo>B</mo> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + </mmultiscripts> + <mmultiscripts> + <mo>B</mo> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + </mmultiscripts> + </mmultiscripts> + </mstyle> + </math> + + <p> + + <!-- Automatically set ssty ignores user set scriptlevel --> + <math> + <mstyle style="font-family: 'sstyfont';" scriptlevel="-3"> + <msup> + <mo>D</mo> + <msup> + <mo>B</mo> + <msup> + <mo>C</mo> + <mo>C</mo> <!-- ssty value capped at 2 --> + </msup> + </msup> + </msup> + + <msub> + <mo>D</mo> + <msub> + <mo>B</mo> + <msub> + <mo>C</mo> + <mo>C</mo> + </msub> + </msub> + </msub> + + <msubsup> + <mo>D</mo> + <msubsup> + <mo>B</mo> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + </msubsup> + <msubsup> + <mo>B</mo> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + </msubsup> + </msubsup> + + <mmultiscripts> + <mo>D</mo> + <mmultiscripts> + <mo>B</mo> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + </mmultiscripts> + <mmultiscripts> + <mo>B</mo> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + </mmultiscripts> + </mmultiscripts> + </mstyle> + </math> + + <p> + + <!-- Automatically set ssty ignores user set scriptlevel --> + <math> + <mstyle style="font-family: 'sstyfont';" scriptlevel="1"> + <msup> + <mo>D</mo> + <msup> + <mo>B</mo> + <msup> + <mo>C</mo> + <mo>C</mo> <!-- ssty value capped at 2 --> + </msup> + </msup> + </msup> + + <msub> + <mo>D</mo> + <msub> + <mo>B</mo> + <msub> + <mo>C</mo> + <mo>C</mo> + </msub> + </msub> + </msub> + + <msubsup> + <mo>D</mo> + <msubsup> + <mo>B</mo> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + </msubsup> + <msubsup> + <mo>B</mo> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + <msubsup> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + </msubsup> + </msubsup> + + <mmultiscripts> + <mo>D</mo> + <mmultiscripts> + <mo>B</mo> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + </mmultiscripts> + <mmultiscripts> + <mo>B</mo> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + <mmultiscripts> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + </mmultiscripts> + </mmultiscripts> + </mstyle> + </math> + + <p> + + <!-- User set ssty font feature setting overrides automatically set ssty, but + only for affected elements --> + <math> + <mstyle style="font-family: 'sstyfont';"> + <msup> + <mo>D</mo> + <msup> + <mo>D</mo> + <mo>C</mo> + </msup> + </msup> + + <msub> + <mo>D</mo> + <msub> + <mo>D</mo> + <mo>C</mo> + </msub> + </msub> + + <msubsup> + <mo>D</mo> + <msubsup> + <mo>D</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + <msubsup> + <mo>D</mo> + <mo>C</mo> + <mo>C</mo> + </msubsup> + </msubsup> + + <mmultiscripts> + <mo>D</mo> + <mmultiscripts> + <mo>D</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + <mmultiscripts> + <mo>D</mo> + <mo>C</mo> + <mo>C</mo> + </mmultiscripts> + </mmultiscripts> + </mstyle> + </math> diff --git a/layout/reftests/mathml/ssty-1.html b/layout/reftests/mathml/ssty-1.html new file mode 100644 index 000000000..64e106630 --- /dev/null +++ b/layout/reftests/mathml/ssty-1.html @@ -0,0 +1,324 @@ +<!DOCTYPE html> +<head> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "sstyfont"; + src: url("ssty.woff"); + } + </style> +</head> +<body> + <math> + <mstyle style="font-family: 'sstyfont';"> + <msup> + <mo>A</mo> + <msup> + <mo>A</mo> + <msup> + <mo>A</mo> + <mo>A</mo> <!-- ssty value capped at 2 --> + </msup> + </msup> + </msup> + + <msub> + <mo>A</mo> + <msub> + <mo>A</mo> + <msub> + <mo>A</mo> + <mo>A</mo> + </msub> + </msub> + </msub> + + <msubsup> + <mo>A</mo> + <msubsup> + <mo>A</mo> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + </msubsup> + <msubsup> + <mo>A</mo> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + </msubsup> + </msubsup> + + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + </mmultiscripts> + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + </mmultiscripts> + </mmultiscripts> + </mstyle> + </math> + + <p> + + <!-- Automatically set ssty ignores scriptlevel --> + <math> + <mstyle style="font-family: 'sstyfont';" scriptlevel="-3"> + <msup> + <mo>A</mo> + <msup> + <mo>A</mo> + <msup> + <mo>A</mo> + <mo>A</mo> <!-- ssty value capped at 2 --> + </msup> + </msup> + </msup> + + <msub> + <mo>A</mo> + <msub> + <mo>A</mo> + <msub> + <mo>A</mo> + <mo>A</mo> + </msub> + </msub> + </msub> + + <msubsup> + <mo>A</mo> + <msubsup> + <mo>A</mo> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + </msubsup> + <msubsup> + <mo>A</mo> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + </msubsup> + </msubsup> + + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + </mmultiscripts> + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + </mmultiscripts> + </mmultiscripts> + </mstyle> + </math> + + <p> + + <!-- Automatically set ssty ignores scriptlevel --> + <math> + <mstyle style="font-family: 'sstyfont';" scriptlevel="1"> + <msup> + <mo>A</mo> + <msup> + <mo>A</mo> + <msup> + <mo>A</mo> + <mo>A</mo> <!-- ssty value capped at 2 --> + </msup> + </msup> + </msup> + + <msub> + <mo>A</mo> + <msub> + <mo>A</mo> + <msub> + <mo>A</mo> + <mo>A</mo> + </msub> + </msub> + </msub> + + <msubsup> + <mo>A</mo> + <msubsup> + <mo>A</mo> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + </msubsup> + <msubsup> + <mo>A</mo> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + <msubsup> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + </msubsup> + </msubsup> + + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + </mmultiscripts> + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + <mmultiscripts> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + </mmultiscripts> + </mmultiscripts> + </mstyle> + </math> + + <p> + + <!-- User set ssty font feature setting overrides automatically set ssty --> + <math> + <mstyle style="font-family: 'sstyfont';"> + <msup> + <mo>A</mo> + <msup> + <mo style="font-feature-settings: 'ssty' 0">A</mo> + <mo>A</mo> + </msup> + </msup> + + <msub> + <mo>A</mo> + <msub> + <mo style="font-feature-settings: 'ssty' 0">A</mo> + <mo>A</mo> + </msub> + </msub> + + <msubsup> + <mo>A</mo> + <msubsup> + <mo style="font-feature-settings: 'ssty' 0">A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + <msubsup> + <mo style="font-feature-settings: 'ssty' 0">A</mo> + <mo>A</mo> + <mo>A</mo> + </msubsup> + </msubsup> + + <mmultiscripts> + <mo>A</mo> + <mmultiscripts> + <mo style="font-feature-settings: 'ssty' 0">A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + <mmultiscripts> + <mo style="font-feature-settings: 'ssty' 0">A</mo> + <mo>A</mo> + <mo>A</mo> + </mmultiscripts> + </mmultiscripts> + </mstyle> + </math> diff --git a/layout/reftests/mathml/ssty-2-ref.html b/layout/reftests/mathml/ssty-2-ref.html new file mode 100644 index 000000000..738a3af98 --- /dev/null +++ b/layout/reftests/mathml/ssty-2-ref.html @@ -0,0 +1,275 @@ +<!DOCTYPE html> +<head> + <!-- See ssty-1-ref.html for an explanation of this font --> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "sstyfont"; + src: url("ssty.woff"); + } + </style> +</head> +<body> + <!-- Test whether the ssty font feature setting is used appropriately for + mroot, mfrac, munderover et al. + Assumes NS_MATHML_DEFAULT_SCRIPT_SIZE_MULTIPLIER is 0.71--> + <math> + <mstyle style="font-family: 'sstyfont';"> + <mroot> + <mo>D</mo> + <mo>C</mo> + </mroot> + + <mfrac> + <mo>B</mo> + <mo>B</mo> + </mfrac> + + <mfrac> + <mfrac> + <mo>C</mo> + <mo>C</mo> + </mfrac> + <mfrac> + <mo>C</mo> + <mo>C</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>B</mo> + <mo>C</mo> + </mroot> + <mo>B</mo> + </mfrac> + + <mover> + <mo>D</mo> + <mover> + <mo>B</mo> + <mo>C</mo> + </mover> + </mover> + + <munder> + <mo>D</mo> + <munder> + <mo>B</mo> + <mo>C</mo> + </munder> + </munder> + + <munderover> + <mo>D</mo> + <munderover> + <mo>B</mo> + <mo>C</mo> + <mo>C</mo> + </munderover> + <munderover> + <mo>B</mo> + <mo>C</mo> + <mo>C</mo> + </munderover> + </munderover> + + </mstyle> + </math> + + <p> + <!-- ssty font feature not set on mfrac et al when displaystyle is + set (still allowed on mroot, mover et al.)--> + <math> + <mstyle style="font-family: 'sstyfont';" displaystyle="true"> + <mroot> + <mo>D</mo> + <mo>C</mo> + </mroot> + + <mfrac> + <mo>D</mo> + <mo>D</mo> + </mfrac> + + <mfrac> + <mfrac> + <!-- ssty gets set as script level incremented because displaystyle + is now false --> + <mo>B</mo> + <mo>B</mo> + </mfrac> + <mfrac> + <mo>B</mo> + <mo>B</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>D</mo> + <mo>C</mo> + </mroot> + <mo>D</mo> + </mfrac> + + <mover> + <mo>D</mo> + <mover> + <mo>B</mo> + <mo>C</mo> + </mover> + </mover> + + <munder> + <mo>D</mo> + <munder> + <mo>B</mo> + <mo>C</mo> + </munder> + </munder> + + <munderover> + <mo>D</mo> + <munderover> + <mo>B</mo> + <mo>C</mo> + <mo>C</mo> + </munderover> + <munderover> + <mo>B</mo> + <mo>C</mo> + <mo>C</mo> + </munderover> + </munderover> + </mstyle> + </math> + + <p> + + <math> + <!-- scriptlevel is not incremented when accent for overframes and + accentunder for underframes are true, so there shouldn't be a + change in the ssty value --> + <mstyle style="font-family: 'sstyfont';"> + <mover accent="true"> + <mo>D</mo> + <mover accent="true"> + <mo>D</mo> + <mo>D</mo> + </mover> + </mover> + + <munder accentunder="true"> + <mo>D</mo> + <munder accentunder="true"> + <mo>D</mo> + <mo>D</mo> + </munder> + </munder> + + <munderover accentunder="true" accent="true"> + <mo>D</mo> + <munderover accentunder="true" accent="true"> + <mo>D</mo> + <mo>D</mo> + <mo>D</mo> + </munderover> + <munderover accentunder="true" accent="true"> + <mo>D</mo> + <mo>D</mo> + <mo>D</mo> + </munderover> + </munderover> + + <mover accent="true"> + <mo>D</mo> + <mover accent="false"> + <mo>D</mo> + <mo>B</mo> + </mover> + </mover> + + <munder accentunder="true"> + <mo>D</mo> + <munder accentunder="false"> + <mo>D</mo> + <mo>B</mo> + </munder> + </munder> + + <munderover accentunder="true" accent="true"> + <mo>D</mo> + <munderover accentunder="false" accent="false"> + <mo>D</mo> + <mo>B</mo> + <mo>B</mo> + </munderover> + <munderover accentunder="false" accent="false"> + <mo>D</mo> + <mo>B</mo> + <mo>B</mo> + </munderover> + </munderover> + + <mover accentunder="false" accent="false"> + <mo>D</mo> + <mover accentunder="true" accent="true"> + <mo>B</mo> + <mo>B</mo> + </mover> + </mover> + + <munder accentunder="false" accent="false"> + <mo>D</mo> + <munder accentunder="true" accent="true"> + <mo>B</mo> + <mo>B</mo> + </munder> + </munder> + + <munderover accentunder="false" accent="false"> + <mo>D</mo> + <munderover accentunder="true" accent="true"> + <mo>B</mo> + <mo>B</mo> + <mo>B</mo> + </munderover> + <munderover accentunder="true" accent="true"> + <mo>B</mo> + <mo>B</mo> + <mo>B</mo> + </munderover> + </munderover> + + <munderover accentunder="false" accent="true"> + <mo>D</mo> + <munderover accentunder="false" accent="true"> + <mo>B</mo> + <mo>C</mo> + <mo>B</mo> + </munderover> + <munderover accentunder="false" accent="true"> + <mo>D</mo> + <mo>B</mo> + <mo>D</mo> + </munderover> + </munderover> + + <munderover accentunder="true" accent="false"> + <mo>D</mo> + <munderover accentunder="true" accent="false"> + <mo>D</mo> + <mo>D</mo> + <mo>B</mo> + </munderover> + <munderover accentunder="true" accent="false"> + <mo>B</mo> + <mo>B</mo> + <mo>C</mo> + </munderover> + </munderover> + + </mstyle> + </math> + +</body>
\ No newline at end of file diff --git a/layout/reftests/mathml/ssty-2.html b/layout/reftests/mathml/ssty-2.html new file mode 100644 index 000000000..2ffd24865 --- /dev/null +++ b/layout/reftests/mathml/ssty-2.html @@ -0,0 +1,267 @@ +<!DOCTYPE html> +<head> + <!-- See ssty-1-ref.html for an explanation of this font --> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "sstyfont"; + src: url("ssty.woff"); + } + </style> +</head> +<body> + <math> + <mstyle style="font-family: 'sstyfont';"> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + <mo>A</mo> + </mfrac> + + <mover> + <mo>A</mo> + <mover> + <mo>A</mo> + <mo>A</mo> + </mover> + </mover> + + <munder> + <mo>A</mo> + <munder> + <mo>A</mo> + <mo>A</mo> + </munder> + </munder> + + <munderover> + <mo>A</mo> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';" displaystyle="true"> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + <mo>A</mo> + </mfrac> + + <mover> + <mo>A</mo> + <mover> + <mo>A</mo> + <mo>A</mo> + </mover> + </mover> + + <munder> + <mo>A</mo> + <munder> + <mo>A</mo> + <mo>A</mo> + </munder> + </munder> + + <munderover> + <mo>A</mo> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';"> + + <mover accent="true"> + <mo>A</mo> + <mover accent="true"> + <mo>A</mo> + <mo>A</mo> + </mover> + </mover> + + <munder accentunder="true"> + <mo>A</mo> + <munder accentunder="true"> + <mo>A</mo> + <mo>A</mo> + </munder> + </munder> + + <munderover accentunder="true" accent="true"> + <mo>A</mo> + <munderover accentunder="true" accent="true"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover accentunder="true" accent="true"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + <mover accentunder="true" accent="true"> + <mo>A</mo> + <mover accentunder="false" accent="false"> + <mo>A</mo> + <mo>A</mo> + </mover> + </mover> + + <munder accentunder="true" accent="true"> + <mo>A</mo> + <munder accentunder="false" accent="false"> + <mo>A</mo> + <mo>A</mo> + </munder> + </munder> + + <munderover accentunder="true" accent="true"> + <mo>A</mo> + <munderover accentunder="false" accent="false"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover accentunder="false" accent="false"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + <mover accent="false"> + <mo>A</mo> + <mover accent="true"> + <mo>A</mo> + <mo>A</mo> + </mover> + </mover> + + <munder accentunder="false"> + <mo>A</mo> + <munder accentunder="true"> + <mo>A</mo> + <mo>A</mo> + </munder> + </munder> + + <munderover accentunder="false" accent="false"> + <mo>A</mo> + <munderover accentunder="true" accent="true"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover accentunder="true" accent="true"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + <munderover accentunder="false" accent="true"> + <mo>A</mo> + <munderover accentunder="false" accent="true"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover accentunder="false" accent="true"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + <munderover accentunder="true" accent="false"> + <mo>A</mo> + <munderover accentunder="true" accent="false"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover accentunder="true" accent="false"> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + </mstyle> + </math> + +</body> diff --git a/layout/reftests/mathml/ssty-3-ref.html b/layout/reftests/mathml/ssty-3-ref.html new file mode 100644 index 000000000..26d201188 --- /dev/null +++ b/layout/reftests/mathml/ssty-3-ref.html @@ -0,0 +1,219 @@ +<!DOCTYPE html> +<head> + <!-- See ssty-1-ref.html for an explanation of this font --> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "sstyfont"; + src: url("ssty.woff"); + } + </style> +</head> +<body> + + <!-- Test changes of scriptsizemultiplier on setting of ssty font feature --> + + <math> + <!-- No changes with scriptsizemultipliers that make things bigger --> + <mstyle style="font-family: 'sstyfont';" scriptsizemultiplier="1.2"> + <mroot> + <mo>D</mo> + <mo>D</mo> + </mroot> + + <mfrac> + <mo>D</mo> + <mo>D</mo> + </mfrac> + + <mfrac> + <mfrac> + <mo>D</mo> + <mo>D</mo> + </mfrac> + <mfrac> + <mo>D</mo> + <mo>D</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>D</mo> + <mo>D</mo> + </mroot> + <mo>D</mo> + </mfrac> + + <mover> + <mo>D</mo> + <mover> + <mo>D</mo> + <mo>D</mo> + </mover> + </mover> + + <munder> + <mo>D</mo> + <munder> + <mo>D</mo> + <mo>D</mo> + </munder> + </munder> + + <munderover> + <mo>D</mo> + <munderover> + <mo>D</mo> + <mo>D</mo> + <mo>D</mo> + </munderover> + <munderover> + <mo>D</mo> + <mo>D</mo> + <mo>D</mo> + </munderover> + </munderover> + + </mstyle> + </math> + + <p> + + <math> + <!-- A slower increase in ssty setting. + scriptlevel=1 corresponds to ssty=0 + scriptlevel=2 corresponds to ssty=1 + scriptlevel=3 corresponds to ssty=2 --> + <mstyle style="font-family: 'sstyfont';" scriptsizemultiplier="0.8"> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + <mo>A</mo> + </mfrac> + + <mover> + <mo>A</mo> + <mover> + <mo>A</mo> + <mo>A</mo> + </mover> + </mover> + + <munder> + <mo>A</mo> + <munder> + <mo>A</mo> + <mo>A</mo> + </munder> + </munder> + + <munderover> + <mo>A</mo> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + </mstyle> + </math> + + <p> + + <math> + <!-- A faster increase in ssty setting. + scriptlevel=1 corresponds to ssty=2 + scriptlevel=2 corresponds to ssty=2 + scriptlevel=3 corresponds to ssty=2 --> + <mstyle style="font-family: 'sstyfont';" scriptsizemultiplier="0.5"> + <mroot> + <mo>D</mo> + <mo>C</mo> + </mroot> + + <mfrac> + <mo>C</mo> + <mo>C</mo> + </mfrac> + + <mfrac> + <mfrac> + <mo>C</mo> + <mo>C</mo> + </mfrac> + <mfrac> + <mo>C</mo> + <mo>C</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>C</mo> + <mo>C</mo> + </mroot> + <mo>C</mo> + </mfrac> + + <mover> + <mo>D</mo> + <mover> + <mo>C</mo> + <mo>C</mo> + </mover> + </mover> + + <munder> + <mo>D</mo> + <munder> + <mo>C</mo> + <mo>C</mo> + </munder> + </munder> + + <munderover> + <mo>D</mo> + <munderover> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </munderover> + <munderover> + <mo>C</mo> + <mo>C</mo> + <mo>C</mo> + </munderover> + </munderover> + + </mstyle> + </math> +</body> diff --git a/layout/reftests/mathml/ssty-3.html b/layout/reftests/mathml/ssty-3.html new file mode 100644 index 000000000..62f436a8f --- /dev/null +++ b/layout/reftests/mathml/ssty-3.html @@ -0,0 +1,207 @@ +<!DOCTYPE html> +<head> + <!-- See ssty-1-ref.html for an explanation of this font --> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "sstyfont"; + src: url("ssty.woff"); + } + </style> +</head> +<body> + <math> + <mstyle style="font-family: 'sstyfont';" scriptsizemultiplier="1.2"> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + <mo>A</mo> + </mfrac> + + <mover> + <mo>A</mo> + <mover> + <mo>A</mo> + <mo>A</mo> + </mover> + </mover> + + <munder> + <mo>A</mo> + <munder> + <mo>A</mo> + <mo>A</mo> + </munder> + </munder> + + <munderover> + <mo>A</mo> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';" scriptsizemultiplier="0.8"> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + <mo>A</mo> + </mfrac> + + <mover> + <mo>A</mo> + <mover> + <mo>A</mo> + <mo>A</mo> + </mover> + </mover> + + <munder> + <mo>A</mo> + <munder> + <mo>A</mo> + <mo>A</mo> + </munder> + </munder> + + <munderover> + <mo>A</mo> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';" scriptsizemultiplier="0.5"> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + + <mfrac> + <mroot> + <mo>A</mo> + <mo>A</mo> + </mroot> + <mo>A</mo> + </mfrac> + + <mover> + <mo>A</mo> + <mover> + <mo>A</mo> + <mo>A</mo> + </mover> + </mover> + + <munder> + <mo>A</mo> + <munder> + <mo>A</mo> + <mo>A</mo> + </munder> + </munder> + + <munderover> + <mo>A</mo> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + <munderover> + <mo>A</mo> + <mo>A</mo> + <mo>A</mo> + </munderover> + </munderover> + + </mstyle> + </math> +</body> diff --git a/layout/reftests/mathml/ssty-4-ref.html b/layout/reftests/mathml/ssty-4-ref.html new file mode 100644 index 000000000..082acbfc4 --- /dev/null +++ b/layout/reftests/mathml/ssty-4-ref.html @@ -0,0 +1,156 @@ +<!DOCTYPE html> +<html> + <head> + <title>Dynamic ssty tests</title> + <!-- See ssty-1-ref.html for an explanation of this font --> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "sstyfont"; + src: url("ssty.woff"); + } + </style> + </head> + <body> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mfrac> + <mo>B</mo> + <mo>B</mo> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mfrac> + <mo>B</mo> + <mo>B</mo> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mfrac> + <mo>B</mo> + <!-- deliberately invalid --> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mo>D</mo> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';" scriptsizemultiplier="1.2"> + <mfrac> + <mfrac> + <mo>D</mo> + <mo>D</mo> + </mfrac> + <mfrac> + <mo>D</mo> + <mo>D</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';" scriptsizemultiplier="0.8"> + <mfrac> + <mfrac> + <mo>B</mo> + <mo>B</mo> + </mfrac> + <mfrac> + <mo>B</mo> + <mo>B</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mfrac> + <mo>B</mo> + <mrow> + <mrow> + <mrow> + <mo>B</mo> + </mrow> + </mrow> + </mrow> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style ="font-family: 'sstyfont';"> + <mfrac> + <mfrac> + <mo>C</mo> + <mo>C</mo> + </mfrac> + <mfrac> + <mo>C</mo> + <mo>C</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle5" style ="font-family: 'sstyfont'; font-feature-settings: 'ssty' 0"> + <mfrac> + <mfrac> + <mo>D</mo> + <mo>D</mo> + </mfrac> + <mfrac> + <mo>D</mo> + <mo>D</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/ssty-4.html b/layout/reftests/mathml/ssty-4.html new file mode 100644 index 000000000..3d60ce6aa --- /dev/null +++ b/layout/reftests/mathml/ssty-4.html @@ -0,0 +1,186 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic ssty tests</title> + <!-- See ssty-1-ref.html for an explanation of this font --> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "sstyfont"; + src: url("ssty.woff"); + } + </style> + </head> + <body> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mfrac id="mfrac0"> + <mo>A</mo> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mfrac> + <mo>A</mo> + <mo id="mo0"></mo> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mfrac> + <mo>A</mo> + <mo id="mo1">A</mo> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';" id="mstyle0"> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle1"> + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle2" style="font-family: 'sstyfont';"> + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle3" style="font-family: 'sstyfont';"> + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle style="font-family: 'sstyfont';"> + <mfrac> + <mo>A</mo> + <mrow> + <mrow> + <mrow id="mrow0"> + </mrow> + </mrow> + </mrow> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle4" style ="font-family: 'sstyfont'; font-feature-settings: 'ssty' 0"> + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + + <p> + + <math> + <mstyle id="mstyle5" style ="font-family: 'sstyfont';"> + <mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + <mfrac> + <mo>A</mo> + <mo>A</mo> + </mfrac> + </mfrac> + </mstyle> + </math> + + <script> + function doTest() + { + var mo = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mo"); + mo.innerHTML = "A"; + // An added child gets ssty font feature + document.getElementById("mfrac0").appendChild(mo); + // A child with changed text gets ssty font feature + document.getElementById("mo0").innerHTML = "A"; + // A relocated child loses ssty font feature setting + document.getElementById("mstyle0").appendChild(document.getElementById("mo1")); + // A change in style + document.getElementById("mstyle1").setAttribute("style", "font-family: 'sstyfont';"); + // Changes in script size multiplier affect ssty setting + document.getElementById("mstyle2").setAttribute("scriptsizemultiplier", "1.2"); + document.getElementById("mstyle3").setAttribute("scriptsizemultiplier", "0.8"); + + // ssty gets added to descendants as well + var mo1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mo"); + mo1.innerHTML = "A"; + document.getElementById("mrow0").appendChild(mo1); + // removing explicit ssty setting works + document.getElementById("mstyle4").setAttribute( + "style", "font-family: 'sstyfont';") + // setting an explicit ssty font feature + document.getElementById("mstyle5").setAttribute( + "style" , "font-family: 'sstyfont'; font-feature-settings: 'ssty' 0") + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </body> +</html> diff --git a/layout/reftests/mathml/ssty.woff b/layout/reftests/mathml/ssty.woff Binary files differnew file mode 100644 index 000000000..19312c713 --- /dev/null +++ b/layout/reftests/mathml/ssty.woff diff --git a/layout/reftests/mathml/stretchy-1-ref.html b/layout/reftests/mathml/stretchy-1-ref.html new file mode 100644 index 000000000..23950c02f --- /dev/null +++ b/layout/reftests/mathml/stretchy-1-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head><title>Test stretchy equal (bug 854339)</title></head> + <body> + + <math> + <munder> + <mi>AVERYLONGBASE</mi> + <mo stretchy="false">=</mo> + </munder> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-1.html b/layout/reftests/mathml/stretchy-1.html new file mode 100644 index 000000000..d4cfcb24f --- /dev/null +++ b/layout/reftests/mathml/stretchy-1.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head><title>Test stretchy equal (bug 854339)</title></head> + <body> + + <math> + <munder> + <mi>AVERYLONGBASE</mi> + <mo stretchy="true">=</mo> + </munder> + </math> + + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-largeop-1-ref.html b/layout/reftests/mathml/stretchy-largeop-1-ref.html new file mode 100644 index 000000000..b65a38958 --- /dev/null +++ b/layout/reftests/mathml/stretchy-largeop-1-ref.html @@ -0,0 +1,56 @@ +<!DOCTYPE html> +<html> + <head> + <title>Largeop stretching</title> + <meta charset="utf-8"/> + </head> + <body> + <p> + <math displaystyle="true"> + <mrow> + <mo id="mo0">(</mo> + <mo>∫</mo> + <mo id="mo1">)</mo> + <mrow> + </math> + </p> + <p> + <math> + <mrow> + <mo id="mo0a">(</mo> + <mo>∫</mo> + <mo id="mo1a">)</mo> + <mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mo id="mo2">(</mo> + <mo>∏</mo> + <mo id="mo3">)</mo> + <mrow> + </math> + </p> + <p> + <math> + <mrow> + <mo id="mo2a">(</mo> + <mo>∏</mo> + <mo id="mo3a">)</mo> + <mrow> + </math> + </p> + <p> + <!-- ⨂ included in the test to check for an assertion involving + the direction of the largeop pre-stretch --> + <math displaystyle="true"> + <mrow> + <mo id="mo4">(</mo> + <mo>⨂</mo> + <mo id="mo5">)</mo> + <mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-largeop-1.html b/layout/reftests/mathml/stretchy-largeop-1.html new file mode 100644 index 000000000..bb63c8a43 --- /dev/null +++ b/layout/reftests/mathml/stretchy-largeop-1.html @@ -0,0 +1,81 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Largeop stretching</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + + function verifyGreaterThan(aElement, aReference) { + /* Verify that the height of the element is greater than that of the + reference, and otherwise paint the element in red. */ + var element = document.getElementById(aElement); + var ref = document.getElementById(aReference); + if (element.getBoundingClientRect().height - + ref.getBoundingClientRect().height <= 1) { + element.setAttribute("mathcolor", "red"); + } + } + + function doTest() { + /* Ensure that the parentheses in the displaystyle case stretch more + than the alternative. */ + verifyGreaterThan("mo0", "mo0a"); + verifyGreaterThan("mo1", "mo1a"); + verifyGreaterThan("mo2", "mo2a"); + verifyGreaterThan("mo3", "mo3a"); + + document.documentElement.removeAttribute("class"); + + } + </script> + </head> + <body onload="doTest();"> + <p> + <math displaystyle="true"> + <mrow> + <mo id="mo0">(</mo> + <mo>∫</mo> + <mo id="mo1">)</mo> + <mrow> + </math> + </p> + <p> + <math> + <mrow> + <mo id="mo0a">(</mo> + <mo>∫</mo> + <mo id="mo1a">)</mo> + <mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mo id="mo2">(</mo> + <mo>∏</mo> + <mo id="mo3">)</mo> + <mrow> + </math> + </p> + <p> + <math> + <mrow> + <mo id="mo2a">(</mo> + <mo>∏</mo> + <mo id="mo3a">)</mo> + <mrow> + </math> + </p> + <p> + <!-- ⨂ included in the test to check for an assertion involving + the direction of the largeop pre-stretch --> + <math displaystyle="true"> + <mrow> + <mo id="mo4">(</mo> + <mo>⨂</mo> + <mo id="mo5">)</mo> + <mrow> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-largeop-2-ref.html b/layout/reftests/mathml/stretchy-largeop-2-ref.html new file mode 100644 index 000000000..d06d26527 --- /dev/null +++ b/layout/reftests/mathml/stretchy-largeop-2-ref.html @@ -0,0 +1,111 @@ +<!DOCTYPE html> +<!-- Test that non-stretchy largeops are bigger in display mode --> + +<html> + <head> + <title>Largeop stretching</title> + <meta charset="utf-8"/> + </head> + <body> + <p> + <math displaystyle="true"> + <mo id="mo0">⨀</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo1">⨁</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo2">⨃</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo3">⨅</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo4">⨇</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo5">⨈</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo6">⨉</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo7">⨊</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo8">⫼</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo9">⫿</mo> + </math> + </p> + <p> + <math> + <mo id="moRef0">⨀</mo> + </math> + </p> + <p> + <math> + <mo id="moRef1">⨁</mo> + </math> + </p> + <p> + <math> + <mo id="moRef2">⨃</mo> + </math> + </p> + <p> + <math> + <mo id="moRef3">⨅</mo> + </math> + </p> + <p> + <math> + <mo id="moRef4">⨇</mo> + </math> + </p> + <p> + <math> + <mo id="moRef5">⨈</mo> + </math> + </p> + <p> + <math> + <mo id="moRef6">⨉</mo> + </math> + </p> + <p> + <math> + <mo id="moRef7">⨊</mo> + </math> + </p> + <p> + <math> + <mo id="moRef8">⫼</mo> + </math> + </p> + <p> + <math> + <mo id="moRef9">⫿</mo> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-largeop-2.html b/layout/reftests/mathml/stretchy-largeop-2.html new file mode 100644 index 000000000..c7f40580e --- /dev/null +++ b/layout/reftests/mathml/stretchy-largeop-2.html @@ -0,0 +1,137 @@ +<!DOCTYPE html> +<!-- Test that non-stretchy largeops are bigger in display mode --> + +<html class="reftest-wait"> + <head> + <title>Largeop stretching</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + + function verifyGreaterThan(aElement, aReference) { + /* Verify that the height of the element is greater than that of the + reference, and otherwise paint the element in red. */ + var element = document.getElementById(aElement); + var ref = document.getElementById(aReference); + if (element.getBoundingClientRect().height - + ref.getBoundingClientRect().height <= 1) { + element.setAttribute("mathcolor", "red"); + } + } + + function doTest() { + /* Ensure that largeops are bigger in displaystyle */ + var numTests = 10; // zero indexed + var opPrefix = "mo"; + var refPrefix = "moRef"; + for (var i = 0; i < numTests; i++) + { + verifyGreaterThan(opPrefix + i, refPrefix + i); + } + document.documentElement.removeAttribute("class"); + + } + </script> + </head> + <body onload="doTest();"> + <p> + <math displaystyle="true"> + <mo id="mo0">⨀</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo1">⨁</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo2">⨃</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo3">⨅</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo4">⨇</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo5">⨈</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo6">⨉</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo7">⨊</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo8">⫼</mo> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="mo9">⫿</mo> + </math> + </p> + <p> + <math> + <mo id="moRef0">⨀</mo> + </math> + </p> + <p> + <math> + <mo id="moRef1">⨁</mo> + </math> + </p> + <p> + <math> + <mo id="moRef2">⨃</mo> + </math> + </p> + <p> + <math> + <mo id="moRef3">⨅</mo> + </math> + </p> + <p> + <math> + <mo id="moRef4">⨇</mo> + </math> + </p> + <p> + <math> + <mo id="moRef5">⨈</mo> + </math> + </p> + <p> + <math> + <mo id="moRef6">⨉</mo> + </math> + </p> + <p> + <math> + <mo id="moRef7">⨊</mo> + </math> + </p> + <p> + <math> + <mo id="moRef8">⫼</mo> + </math> + </p> + <p> + <math> + <mo id="moRef9">⫿</mo> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-largeop-3-ref.html b/layout/reftests/mathml/stretchy-largeop-3-ref.html new file mode 100644 index 000000000..83837c8b3 --- /dev/null +++ b/layout/reftests/mathml/stretchy-largeop-3-ref.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<!-- Test that non-stretchy largeops do not stretch --> + +<html> + <head> + <title>Largeop stretching</title> + <meta charset="utf-8" /> + </head> + <body> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo0">⨀</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo1">⨁</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo2">⨃</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo3">⨅</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo4">⨇</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo5">⨈</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo6">⨉</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo7">⨊</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo8">⫼</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo9">⫿</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="moRef0">⨀</mo> + </math> + <math displaystyle="true"> + <mo id="moRef1">⨁</mo> + </math> + <math displaystyle="true"> + <mo id="moRef2">⨃</mo> + </math> + <math displaystyle="true"> + <mo id="moRef3">⨅</mo> + </math> + <math displaystyle="true"> + <mo id="moRef4">⨇</mo> + </math> + <math displaystyle="true"> + <mo id="moRef5">⨈</mo> + </math> + <math displaystyle="true"> + <mo id="moRef6">⨉</mo> + </math> + <math displaystyle="true"> + <mo id="moRef7">⨊</mo> + </math> + <math displaystyle="true"> + <mo id="moRef8">⫼</mo> + </math> + <math displaystyle="true"> + <mo id="moRef9">⫿</mo> + </math> + </p> + </body> +</html>
\ No newline at end of file diff --git a/layout/reftests/mathml/stretchy-largeop-3.html b/layout/reftests/mathml/stretchy-largeop-3.html new file mode 100644 index 000000000..5fe314989 --- /dev/null +++ b/layout/reftests/mathml/stretchy-largeop-3.html @@ -0,0 +1,156 @@ +<!DOCTYPE html> +<!-- Test that non-stretchy largeops do not stretch --> + +<html class="reftest-wait"> + <head> + <title>Largeop stretching</title> + <meta charset="utf-8" /> + <script type="text/javascript"> + + function almostEqual(aX, aY) { + var epsilon = 2; + return Math.abs(aX - aY) < epsilon; + } + + function verifySize(aElement, aReference) { + /* Verify if the size of the element matches the reference, and + otherwise paint the element in red. */ + var element = document.getElementById(aElement); + var ref = document.getElementById(aReference); + if (!almostEqual(element.getBoundingClientRect().height, + ref.getBoundingClientRect().height) || + !almostEqual(element.getBoundingClientRect().width, + ref.getBoundingClientRect().width)) { + element.setAttribute("mathcolor", "red"); + } + } + + function doTest() { + /* Ensure that largeops are bigger in displaystyle */ + var numTests = 10; // zero indexed + var opPrefix = "mo"; + var refPrefix = "moRef"; + for (var i = 0; i < numTests; i++) + { + verifySize(opPrefix + i, refPrefix + i); + } + document.documentElement.removeAttribute("class"); + + } + </script> + </head> + <body onload="doTest();"> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo0">⨀</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo1">⨁</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo2">⨃</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo3">⨅</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo4">⨇</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo5">⨈</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo6">⨉</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo7">⨊</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo8">⫼</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mrow> + <mspace height="3em" /> + <mo id="mo9">⫿</mo> + </mrow> + </math> + </p> + <p> + <math displaystyle="true"> + <mo id="moRef0">⨀</mo> + </math> + <math displaystyle="true"> + <mo id="moRef1">⨁</mo> + </math> + <math displaystyle="true"> + <mo id="moRef2">⨃</mo> + </math> + <math displaystyle="true"> + <mo id="moRef3">⨅</mo> + </math> + <math displaystyle="true"> + <mo id="moRef4">⨇</mo> + </math> + <math displaystyle="true"> + <mo id="moRef5">⨈</mo> + </math> + <math displaystyle="true"> + <mo id="moRef6">⨉</mo> + </math> + <math displaystyle="true"> + <mo id="moRef7">⨊</mo> + </math> + <math displaystyle="true"> + <mo id="moRef8">⫼</mo> + </math> + <math displaystyle="true"> + <mo id="moRef9">⫿</mo> + </math> + </p> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-1-ref.html b/layout/reftests/mathml/stretchy-mfenced-1-ref.html new file mode 100644 index 000000000..a7052582e --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-1-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mfenced> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + </mfenced> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-1a.html b/layout/reftests/mathml/stretchy-mfenced-1a.html new file mode 100644 index 000000000..90c246530 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-1a.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mfenced> + <munderover> + <mo stretchy="false">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + </mfenced> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-1b.html b/layout/reftests/mathml/stretchy-mfenced-1b.html new file mode 100644 index 000000000..38581f5c4 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-1b.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <mo stretchy="false">(</mo> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mo stretchy="false">)</mo> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-2-ref.html b/layout/reftests/mathml/stretchy-mfenced-2-ref.html new file mode 100644 index 000000000..fd1da1a43 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-2-ref.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mfenced> + <msup> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + </msup> + </mfenced> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-2a.html b/layout/reftests/mathml/stretchy-mfenced-2a.html new file mode 100644 index 000000000..40d30fb72 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-2a.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mfenced> + <msup> + <mo stretchy="false">→</mo> + <mtext>AAAAAA</mtext> + </msup> + </mfenced> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-2b.html b/layout/reftests/mathml/stretchy-mfenced-2b.html new file mode 100644 index 000000000..b81739650 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-2b.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <mo stretchy="false">(</mo> + <msup> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + </msup> + <mo stretchy="false">)</mo> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-3-ref.html b/layout/reftests/mathml/stretchy-mfenced-3-ref.html new file mode 100644 index 000000000..a457616dd --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-3-ref.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mfenced> + <msup> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mtext>CCCCCC</mtext> + </msup> + </mfenced> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-3a.html b/layout/reftests/mathml/stretchy-mfenced-3a.html new file mode 100644 index 000000000..fd06fbb05 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-3a.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mfenced> + <msup> + <munderover> + <mo stretchy="false">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mtext>CCCCCC</mtext> + </msup> + </mfenced> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-3b.html b/layout/reftests/mathml/stretchy-mfenced-3b.html new file mode 100644 index 000000000..c84ece778 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-3b.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <mo stretchy="false">(</mo> + <msup> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mtext>CCCCCC</mtext> + </msup> + <mo stretchy="false">)</mo> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-4-ref.html b/layout/reftests/mathml/stretchy-mfenced-4-ref.html new file mode 100644 index 000000000..be834df71 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-4-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mfenced open="→" close="→"> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + </mfenced> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-4a.html b/layout/reftests/mathml/stretchy-mfenced-4a.html new file mode 100644 index 000000000..c740f1e92 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-4a.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mrow> + <mo stretchy="false">→</mo> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mo stretchy="false">→</mo> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mfenced-4b.html b/layout/reftests/mathml/stretchy-mfenced-4b.html new file mode 100644 index 000000000..e0fc086b7 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mfenced-4b.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mfenced</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mrow> + <mo stretchy="true">→</mo> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mo stretchy="true">→</mo> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mover-1-ref.html b/layout/reftests/mathml/stretchy-mover-1-ref.html new file mode 100644 index 000000000..8adf15811 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mover-1-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math display=block> + <mover> + <mo stretchy="true">→</mo> + <mn>BBBBBBBBB</mn> + </mover> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mover-1a.html b/layout/reftests/mathml/stretchy-mover-1a.html new file mode 100644 index 000000000..7458bff15 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mover-1a.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math display=block> + <mrow> + <mspace width="15em"/> + <mrow> + <mover> + <mo stretchy="true">→</mo> + <mn>BBBBBBBBB</mn> + </mover> + </mrow> + <mspace width="15em"/> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mover-1b.html b/layout/reftests/mathml/stretchy-mover-1b.html new file mode 100644 index 000000000..eaa9087ed --- /dev/null +++ b/layout/reftests/mathml/stretchy-mover-1b.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math display=block> + <mrow> + <mspace depth="50em"/> + <mrow> + <mover> + <mo stretchy="true">→</mo> + <mn>BBBBBBBBB</mn> + </mover> + </mrow> + <mspace depth="50em"/> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mover-2-ref.html b/layout/reftests/mathml/stretchy-mover-2-ref.html new file mode 100644 index 000000000..5dafe6ead --- /dev/null +++ b/layout/reftests/mathml/stretchy-mover-2-ref.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math display=block> + <mrow> + <mrow> + <mover> + <mo stretchy="false">↑</mo> + <mn>B</mn> + </mover> + </mrow> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mover-2a.html b/layout/reftests/mathml/stretchy-mover-2a.html new file mode 100644 index 000000000..bc40bdd0c --- /dev/null +++ b/layout/reftests/mathml/stretchy-mover-2a.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math display=block> + <mrow> + <mspace width="10em"/> + <mrow> + <mover> + <mo stretchy="true">↑</mo> + <mn>B</mn> + </mover> + </mrow> + <mspace width="10em"/> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mover-2b.html b/layout/reftests/mathml/stretchy-mover-2b.html new file mode 100644 index 000000000..726b76788 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mover-2b.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math display=block> + <mrow> + <mspace depth="5em"/> + <mrow> + <mover> + <mo stretchy="true">↑</mo> + <mn>B</mn> + </mover> + </mrow> + <mspace depth="5em"/> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mover-3-ref.html b/layout/reftests/mathml/stretchy-mover-3-ref.html new file mode 100644 index 000000000..2ed96936e --- /dev/null +++ b/layout/reftests/mathml/stretchy-mover-3-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mover> + <mo stretchy="false">‖</mo> + <mn>BBBBBBBBB</mn> + </mover> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-mover-3.html b/layout/reftests/mathml/stretchy-mover-3.html new file mode 100644 index 000000000..ec1ba1984 --- /dev/null +++ b/layout/reftests/mathml/stretchy-mover-3.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy mover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mover> + <mo stretchy="true">‖</mo> + <mn>BBBBBBBBB</mn> + </mover> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-msup-1-ref.html b/layout/reftests/mathml/stretchy-msup-1-ref.html new file mode 100644 index 000000000..6d791628d --- /dev/null +++ b/layout/reftests/mathml/stretchy-msup-1-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Non-stretchy msup</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <msup> + <mo stretchy="false">→</mo> + <mtext>AAAAAA</mtext> + </msup> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-msup-1a.html b/layout/reftests/mathml/stretchy-msup-1a.html new file mode 100644 index 000000000..ef07155e7 --- /dev/null +++ b/layout/reftests/mathml/stretchy-msup-1a.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>Non-stretchy msup</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <msup> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + </msup> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-msup-1b.html b/layout/reftests/mathml/stretchy-msup-1b.html new file mode 100644 index 000000000..afdad4f91 --- /dev/null +++ b/layout/reftests/mathml/stretchy-msup-1b.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <title>Non-stretchy msup</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mrow> + <msup> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + </msup> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-msup-1c.html b/layout/reftests/mathml/stretchy-msup-1c.html new file mode 100644 index 000000000..64807ca64 --- /dev/null +++ b/layout/reftests/mathml/stretchy-msup-1c.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>Non-stretchy msup</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mrow> + <mrow> + <msup> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + </msup> + </mrow> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-msup-1d.html b/layout/reftests/mathml/stretchy-msup-1d.html new file mode 100644 index 000000000..2f3011d8b --- /dev/null +++ b/layout/reftests/mathml/stretchy-msup-1d.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>Non-stretchy msup</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mrow> + <msup> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + </msup> + <mspace width="5em" /> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-1-ref.html b/layout/reftests/mathml/stretchy-munderover-1-ref.html new file mode 100644 index 000000000..9eac657d5 --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-1-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mrow> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-1a.html b/layout/reftests/mathml/stretchy-munderover-1a.html new file mode 100644 index 000000000..3676e429f --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-1a.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <munderover> + <mo stretchy="false">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-1b.html b/layout/reftests/mathml/stretchy-munderover-1b.html new file mode 100644 index 000000000..05381e5f3 --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-1b.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <mrow> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + </mrow> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-1c.html b/layout/reftests/mathml/stretchy-munderover-1c.html new file mode 100644 index 000000000..8db901cb4 --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-1c.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-1d.html b/layout/reftests/mathml/stretchy-munderover-1d.html new file mode 100644 index 000000000..7dc3e9127 --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-1d.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mspace width="5em" /> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-1e.html b/layout/reftests/mathml/stretchy-munderover-1e.html new file mode 100644 index 000000000..2660cea79 --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-1e.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <munderover> + <mo stretchy="true" lspace="0em" rspace="0em">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mn></mn> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-2-ref.html b/layout/reftests/mathml/stretchy-munderover-2-ref.html new file mode 100644 index 000000000..690e7adfe --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-2-ref.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math > + <mrow> + <msup> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mtext>CCCCCC</mtext> + </msup> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-2a.html b/layout/reftests/mathml/stretchy-munderover-2a.html new file mode 100644 index 000000000..a0620efd7 --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-2a.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <msup> + <munderover> + <mo stretchy="false">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mtext>CCCCCC</mtext> + </msup> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-2b.html b/layout/reftests/mathml/stretchy-munderover-2b.html new file mode 100644 index 000000000..eadf419db --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-2b.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <mrow> + <msup> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mtext>CCCCCC</mtext> + </msup> + </mrow> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-2c.html b/layout/reftests/mathml/stretchy-munderover-2c.html new file mode 100644 index 000000000..9c169ba22 --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-2c.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <msup> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mtext>CCCCCC</mtext> + </msup> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-2d.html b/layout/reftests/mathml/stretchy-munderover-2d.html new file mode 100644 index 000000000..867bd803f --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-2d.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <msup> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mtext>CCCCCC</mtext> + </msup> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-2e.html b/layout/reftests/mathml/stretchy-munderover-2e.html new file mode 100644 index 000000000..607a73795 --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-2e.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <msup> + <mrow> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + </mrow> + <mtext>CCCCCC</mtext> + </msup> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-2f.html b/layout/reftests/mathml/stretchy-munderover-2f.html new file mode 100644 index 000000000..05ac1b4cb --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-2f.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <msup> + <mrow> + <mrow> + <munderover> + <mo stretchy="true">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + </mrow> + </mrow> + <mtext>CCCCCC</mtext> + </msup> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-2g.html b/layout/reftests/mathml/stretchy-munderover-2g.html new file mode 100644 index 000000000..fd7dda6ef --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-2g.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <msup> + <munderover> + <mo stretchy="true" lspace="0em" rspace="0em">→</mo> + <mtext>AAAAAA</mtext> + <mtext>BBBBBB</mtext> + </munderover> + <mtext>CCCCCC</mtext> + </msup> + <mn></mn> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-3-ref.html b/layout/reftests/mathml/stretchy-munderover-3-ref.html new file mode 100644 index 000000000..acc97ad3d --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-3-ref.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <munderover> + <mtext>AAAAAA</mtext> + <mo stretchy="true">→</mo> + <mtext>BBBBBB</mtext> + </munderover> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-3a.html b/layout/reftests/mathml/stretchy-munderover-3a.html new file mode 100644 index 000000000..29b18c66b --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-3a.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <munderover> + <mtext>AAAAAA</mtext> + <mo stretchy="false">→</mo> + <mtext>BBBBBB</mtext> + </munderover> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-3b.html b/layout/reftests/mathml/stretchy-munderover-3b.html new file mode 100644 index 000000000..01ae3aa9d --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-3b.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <munderover> + <mtext>AAAAAA</mtext> + <mo stretchy="true">→</mo> + <mtext>BBBBBB</mtext> + </munderover> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-3c.html b/layout/reftests/mathml/stretchy-munderover-3c.html new file mode 100644 index 000000000..9c1f3c3dd --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-3c.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <mrow> + <munderover> + <mtext>AAAAAA</mtext> + <mo stretchy="true">→</mo> + <mtext>BBBBBB</mtext> + </munderover> + <mspace width="5em" /> + </mrow> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-munderover-3d.html b/layout/reftests/mathml/stretchy-munderover-3d.html new file mode 100644 index 000000000..3fc2e3df8 --- /dev/null +++ b/layout/reftests/mathml/stretchy-munderover-3d.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <title>Stretchy munderover</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + <!-- See bug 687807 --> + <math> + <munderover> + <mtext>AAAAAA</mtext> + <mo stretchy="false">→</mo> + <mtext>BBBBBB</mtext> + </munderover> + </math> + </body> +</html> diff --git a/layout/reftests/mathml/stretchy-underbar-1-ref.xhtml b/layout/reftests/mathml/stretchy-underbar-1-ref.xhtml new file mode 100644 index 000000000..0c9e36574 --- /dev/null +++ b/layout/reftests/mathml/stretchy-underbar-1-ref.xhtml @@ -0,0 +1,17 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <style type="text/css"> + html { background-color: white; font-size: 50px } + mi { color: white; } + mo { color: red; } + </style> + </head> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mi>long</mi> + <mo>̲</mo> + </munder> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/stretchy-underbar-1.xhtml b/layout/reftests/mathml/stretchy-underbar-1.xhtml new file mode 100644 index 000000000..274f9a754 --- /dev/null +++ b/layout/reftests/mathml/stretchy-underbar-1.xhtml @@ -0,0 +1,18 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Check that UnderBar is visible when stretched</title> + <style type="text/css"> + html { background-color: white; font-size: 50px } + mi { color: white; } + mo { color: black; } + </style> + </head> +<body> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mi>long</mi> + <mo>̲</mo> + </munder> + </math> +</body> +</html> diff --git a/layout/reftests/mathml/subscript-italic-correction-ref.html b/layout/reftests/mathml/subscript-italic-correction-ref.html new file mode 100644 index 000000000..a4527325c --- /dev/null +++ b/layout/reftests/mathml/subscript-italic-correction-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <head> + <title>subscript</title> + <meta charset="utf-8"/> + </head> + <body style="background: #5f5; font-size: 50px;"> + + <div> + <math> + <msubsup> + <mi mathbackground="#5f5">f</mi> + <mspace id="s0" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s1" width="50px" height="50px" mathbackground="blue"/> + </msubsup> + </math> + </div> + + <br/> + + <div> + <math> + <mmultiscripts> + <mi mathbackground="#5f5">f</mi> + <mspace id="s2" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s3" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s4" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s5" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s6" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s7" width="50px" height="50px" mathbackground="blue"/> + </mmultiscripts> + </math> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/subscript-italic-correction.html b/layout/reftests/mathml/subscript-italic-correction.html new file mode 100644 index 000000000..3d6b935cd --- /dev/null +++ b/layout/reftests/mathml/subscript-italic-correction.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>subscript</title> + <meta charset="utf-8"/> + <script type="text/javascript"> + function verifyItalicCorrections() + { + var epsilon = 2; + for (var i = 0; i < 8; i += 2) { + var sub = document.getElementById("s" + i); + var sup = document.getElementById("s" + (i+1)); + var italicCorrection = + sup.getBoundingClientRect().left - sub.getBoundingClientRect().left; + if (italicCorrection < epsilon) { + return false; + } + } + return true; + } + + function doTest() + { + if (verifyItalicCorrections()) { + document.body.style.background = "#5f5"; + } + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </head> + <body style="background: #f00; font-size: 50px;"> + + <div> + <math> + <msubsup> + <mi mathbackground="#5f5">f</mi> + <mspace id="s0" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s1" width="50px" height="50px" mathbackground="blue"/> + </msubsup> + </math> + </div> + + <br/> + + <div> + <math> + <mmultiscripts> + <mi mathbackground="#5f5">f</mi> + <mspace id="s2" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s3" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s4" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s5" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s6" width="50px" height="50px" mathbackground="blue"/> + <mspace id="s7" width="50px" height="50px" mathbackground="blue"/> + </mmultiscripts> + </math> + </div> + + </body> +</html> diff --git a/layout/reftests/mathml/table-width-1-ref.xhtml b/layout/reftests/mathml/table-width-1-ref.xhtml new file mode 100644 index 000000000..1aef15435 --- /dev/null +++ b/layout/reftests/mathml/table-width-1-ref.xhtml @@ -0,0 +1,103 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <style type="text/css"> + html { background-color: grey; } + td { border: 1px solid white; + padding-top: 0; + padding-bottom: 0; + padding-right: 1px; + padding-left: 1px; + background-color: black; + color: red; } + </style> + </head> +<body> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <mn>60</mn> + <mo>⁢</mo> + <msqrt> + <mn>2</mn> + <mo>+</mo> + <mn>3</mn> + <mo>-</mo> + <mo>5</mo> + </msqrt> + </mphantom> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <mroot> + <mfrac> + <mn>8</mn> + <mn>90</mn> + </mfrac> + <mn>61</mn> + </mroot> + </mphantom> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <mfenced> + <mtable> + <mtr><mtd><mn>0</mn></mtd></mtr> + <mtr><mtd><mn>80</mn></mtd></mtr> + </mtable> + </mfenced> + </mphantom> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <mfrac bevelled="true"> + <mn>82</mn> + <mn>28</mn> + </mfrac> + </mphantom> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <mo>|</mo> + <mo>{</mo> + <mtable> + <mtr><mtd><mn>0</mn></mtd></mtr> + <mtr><mtd><mn>5</mn></mtd></mtr> + <mtr><mtd><mn>9</mn></mtd></mtr> + </mtable> + <mo>}</mo> + <mo>|</mo> + </mphantom> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <mfrac bevelled="true" linethickness="30px"> + <mn>1473903823894702</mn> + <mn>2808472638402743</mn> + </mfrac> + </mphantom> + </math> + </td> + </table> +</body> +</html> diff --git a/layout/reftests/mathml/table-width-1.xhtml b/layout/reftests/mathml/table-width-1.xhtml new file mode 100644 index 000000000..04948d8e6 --- /dev/null +++ b/layout/reftests/mathml/table-width-1.xhtml @@ -0,0 +1,96 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Check that the content box is large enough</title> + <style type="text/css"> + html { background-color: grey; } + td { border: 1px solid white; + padding-top: 0; + padding-bottom: 0; + padding-right: 1px; + padding-left: 1px; + background-color: black; + color: black; } + </style> + </head> +<body> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mn>60</mn> + <mo>⁢</mo> + <msqrt> + <mn>2</mn> + <mo>+</mo> + <mn>3</mn> + <mo>-</mo> + <mo>5</mo> + </msqrt> + </mrow> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mroot> + <mfrac> + <mn>8</mn> + <mn>90</mn> + </mfrac> + <mn>61</mn> + </mroot> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfenced> + <mtable> + <mtr><mtd><mn>0</mn></mtd></mtr> + <mtr><mtd><mn>80</mn></mtd></mtr> + </mtable> + </mfenced> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac bevelled="true"> + <mn>82</mn> + <mn>28</mn> + </mfrac> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mo>|</mo> + <mo>{</mo> + <mtable> + <mtr><mtd><mn>0</mn></mtd></mtr> + <mtr><mtd><mn>5</mn></mtd></mtr> + <mtr><mtd><mn>9</mn></mtd></mtr> + </mtable> + <mo>}</mo> + <mo>|</mo> + </mrow> + </math> + </td> + </table> + <table> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mfrac bevelled="true" linethickness="30px"> + <mn>1473903823894702</mn> + <mn>2808472638402743</mn> + </mfrac> + </math> + </td> + </table> +</body> +</html> diff --git a/layout/reftests/mathml/table-width-2-ref.html b/layout/reftests/mathml/table-width-2-ref.html new file mode 100644 index 000000000..265d06d96 --- /dev/null +++ b/layout/reftests/mathml/table-width-2-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <head> + <title>table-width-2</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + + <!-- See bug 459363 --> + + <p> + <math> + <mtable> + <mtr> + <mtd><mtext>|</mtext></mtd> + <mtd><mrow style="width: 5em;"></mrow></mtd> + <mtd><mtext>|</mtext></mtd> + </mtr> + </mtable> + </math> + </p> + + <p> + <math> + <mtable> + <mtr> + <mtd><mtext>|</mtext></mtd> + <mtd><mrow style="width: 5em;"></mrow></mtd> + <mtd><mtext>|</mtext></mtd> + </mtr> + </mtable> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/table-width-2.html b/layout/reftests/mathml/table-width-2.html new file mode 100644 index 000000000..a3a41f447 --- /dev/null +++ b/layout/reftests/mathml/table-width-2.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <head> + <title>table-width-2</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + </head> + <body> + + <!-- See bug 459363 --> + + <p> + <math> + <mtable> + <mtr> + <mtd><mtext>|</mtext></mtd> + <mtd><mspace width="5em"></mspace></mtd> + <mtd><mtext>|</mtext></mtd> + </mtr> + </mtable> + </math> + </p> + + <p> + <math> + <mtable> + <mtr> + <mtd><mtext>|</mtext></mtd> + <mtd><mpadded width="5em"></mpadded></mtd> + <mtd><mtext>|</mtext></mtd> + </mtr> + </mtable> + </math> + </p> + + </body> +</html> diff --git a/layout/reftests/mathml/table-width-3-ref.html b/layout/reftests/mathml/table-width-3-ref.html new file mode 100644 index 000000000..6ae31d799 --- /dev/null +++ b/layout/reftests/mathml/table-width-3-ref.html @@ -0,0 +1,103 @@ +<!DOCTYPE html> +<html> + <head> + <title>table-width-3</title> + <meta charset="utf-8"/> + <style type="text/css"> + html { background-color: grey; } + td { border: 1px solid white; + padding-top: 0; + padding-bottom: 0; + padding-right: 1px; + padding-left: 1px; + background-color: black; + color: red; } + mi, mtext { font-size: 3em; } + span { font-style: italic; display: inline-block; } + </style> + </head> + <body> + + <table> + <tr> + <td> + <math> + <mphantom> + <mi>f</mi> + </mphantom> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mphantom> + <mi>f</mi> + </mphantom> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mphantom> + <mi>f</mi> + <mi>f</mi> + <mi>f</mi> + </mphantom> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mphantom> + <mi style="font-style: italic;">fff</mi> + </mphantom> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mphantom> + <mtext><span>fff</span></mtext> + </mphantom> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mphantom> + <mtext><span>f</span></mtext> + <mtext><span>f</span></mtext> + <mtext><span>f</span></mtext> + </mphantom> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mphantom> + <mtext><span>f</span><span>f</span><span>f</span></mtext> + </mphantom> + </math> + </td> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/mathml/table-width-3.html b/layout/reftests/mathml/table-width-3.html new file mode 100644 index 000000000..abf9d9ebf --- /dev/null +++ b/layout/reftests/mathml/table-width-3.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <title>table-width-3</title> + <meta charset="utf-8"/> + <style type="text/css"> + html { background-color: grey; } + td { border: 1px solid white; + padding-top: 0; + padding-bottom: 0; + padding-right: 1px; + padding-left: 1px; + background-color: black; + color: black; } + mi, mtext { font-size: 3em; } + span { font-style: italic; display: inline-block; } + </style> + </head> + <body> + + <table> + <tr> + <td> + <math> + <mi>f</mi> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mi> f </mi> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mi>f</mi> + <mi>f</mi> + <mi>f</mi> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mi style="font-style: italic;">fff</mi> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mtext><span>fff</span></mtext> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mtext><span>f</span></mtext> + <mtext><span>f</span></mtext> + <mtext><span>f</span></mtext> + </math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math> + <mtext><span>f</span><span>f</span><span>f</span></mtext> + </math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/table-width-4-ref.html b/layout/reftests/mathml/table-width-4-ref.html new file mode 100644 index 000000000..b0bfbebfc --- /dev/null +++ b/layout/reftests/mathml/table-width-4-ref.html @@ -0,0 +1,63 @@ +<!DOCTYPE html> +<html> + <head> + <title>table-width-4</title> + <meta charset="utf-8"/> + <style type="text/css"> + html { background-color: grey; } + td { border: 1px solid white; + padding-top: 0; + padding-bottom: 0; + padding-right: 2px; + padding-left: 1px; + background-color: black; + color: black; } + </style> + </head> + <body> + + <table> + <tr> + <td> + <math><mphantom><mi>ℓ</mi><mi>i</mi></mphantom></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mphantom><mtext>ℓ</mtext><mi>i</mi></mphantom></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mphantom><mtext style="font-style: italic">ℓ</mtext><mi>i</mi></mphantom></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mphantom><mtext mathvariant="script">l</mtext><mi>i</mi></mphantom></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mphantom><mi mathvariant="script">l</mi><mi>i</mi></mphantom></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mphantom><mi mathvariant="script">l</mi><mi>i</mi></mphantom></math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/table-width-4.html b/layout/reftests/mathml/table-width-4.html new file mode 100644 index 000000000..71eb32bdc --- /dev/null +++ b/layout/reftests/mathml/table-width-4.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html> + <head> + <title>table-width-4</title> + <meta charset="utf-8"/> + <style type="text/css"> + html { background-color: grey; } + td { border: 1px solid white; + padding-top: 0; + padding-bottom: 0; + padding-right: 2px; + padding-left: 1px; + background-color: black; + color: black; } + </style> + </head> + <body> + + <table> + <tr> + <td> + <math><mi>ℓ</mi><mi>i</mi></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mtext>ℓ</mtext><mi>i</mi></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mtext style="font-style: italic">ℓ</mtext><mi>i</mi></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mtext mathvariant="script">l</mtext><mi>i</mi></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mi mathvariant="script">l</mi><mi>i</mi></math> + </td> + </tr> + </table> + <table> + <tr> + <td> + <math><mi mathvariant="script">l</mi> + <mi mathvariant="italic">i</mi></math> + </td> + </tr> + </table> + + </body> +</html> diff --git a/layout/reftests/mathml/tablespacing-1-ref.html b/layout/reftests/mathml/tablespacing-1-ref.html new file mode 100644 index 000000000..3ad0881e2 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/tablespacing-1.html b/layout/reftests/mathml/tablespacing-1.html new file mode 100644 index 000000000..864fd2302 --- /dev/null +++ b/layout/reftests/mathml/tablespacing-1.html @@ -0,0 +1,66 @@ +<!DOCTYPE html> +<html> + <head><title>Table spacing default values</title></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/layout/reftests/mathml/tablespacing-2-ref.html b/layout/reftests/mathml/tablespacing-2-ref.html new file mode 100644 index 000000000..0bf2e4822 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/tablespacing-2.html b/layout/reftests/mathml/tablespacing-2.html new file mode 100644 index 000000000..e150ab7ba --- /dev/null +++ b/layout/reftests/mathml/tablespacing-2.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 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/layout/reftests/mathml/tablespacing-3-ref.html b/layout/reftests/mathml/tablespacing-3-ref.html new file mode 100644 index 000000000..f4180d8df --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/tablespacing-3.html b/layout/reftests/mathml/tablespacing-3.html new file mode 100644 index 000000000..352a8a088 --- /dev/null +++ b/layout/reftests/mathml/tablespacing-3.html @@ -0,0 +1,133 @@ +<!DOCTYPE html> +<html> + <head><title>Single value for rowspacing/columnspacing accepted</title></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/layout/reftests/mathml/tablespacing-4-ref.html b/layout/reftests/mathml/tablespacing-4-ref.html new file mode 100644 index 000000000..42474859e --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/tablespacing-4.html b/layout/reftests/mathml/tablespacing-4.html new file mode 100644 index 000000000..f886b54b3 --- /dev/null +++ b/layout/reftests/mathml/tablespacing-4.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic tests involving adding and removing elements</title> + <meta charset="utf-8"/> + </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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </body> +</html> diff --git a/layout/reftests/mathml/tablespacing-5-ref.html b/layout/reftests/mathml/tablespacing-5-ref.html new file mode 100644 index 000000000..c79ccd1e8 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/tablespacing-5.html b/layout/reftests/mathml/tablespacing-5.html new file mode 100644 index 000000000..9259c3dee --- /dev/null +++ b/layout/reftests/mathml/tablespacing-5.html @@ -0,0 +1,295 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic tests involving changes to row/column/framespacing</title> + <meta charset="utf-8"/> + </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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + + </script> + </body> +</html> diff --git a/layout/reftests/mathml/tablespacing-5a-ref.html b/layout/reftests/mathml/tablespacing-5a-ref.html new file mode 100644 index 000000000..4d0820805 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/tablespacing-5a.html b/layout/reftests/mathml/tablespacing-5a.html new file mode 100644 index 000000000..d6faa1e46 --- /dev/null +++ b/layout/reftests/mathml/tablespacing-5a.html @@ -0,0 +1,295 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic tests involving changes to row/column/framespacing</title> + <meta charset="utf-8"/> + </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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + + </script> + </body> +</html> diff --git a/layout/reftests/mathml/tablespacing-6-ref.html b/layout/reftests/mathml/tablespacing-6-ref.html new file mode 100644 index 000000000..a08f5a0ca --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/tablespacing-6.html b/layout/reftests/mathml/tablespacing-6.html new file mode 100644 index 000000000..771e888a6 --- /dev/null +++ b/layout/reftests/mathml/tablespacing-6.html @@ -0,0 +1,135 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>Dynamic tests involving changes to row/column/framespacing</title> + <meta charset="utf-8"/> + </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"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); + </script> + </body> +</html> diff --git a/layout/reftests/mathml/tablespacing-7-ref.html b/layout/reftests/mathml/tablespacing-7-ref.html new file mode 100644 index 000000000..ad2d53b03 --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/tablespacing-7.html b/layout/reftests/mathml/tablespacing-7.html new file mode 100644 index 000000000..ac816bb96 --- /dev/null +++ b/layout/reftests/mathml/tablespacing-7.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 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/layout/reftests/mathml/tablespacing-8-ref.html b/layout/reftests/mathml/tablespacing-8-ref.html new file mode 100644 index 000000000..a39c15b3d --- /dev/null +++ b/layout/reftests/mathml/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/layout/reftests/mathml/tablespacing-8a.html b/layout/reftests/mathml/tablespacing-8a.html new file mode 100644 index 000000000..3e2b42c9e --- /dev/null +++ b/layout/reftests/mathml/tablespacing-8a.html @@ -0,0 +1,39 @@ +<!-- -*- 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="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/layout/reftests/mathml/tablespacing-8b.html b/layout/reftests/mathml/tablespacing-8b.html new file mode 100644 index 000000000..db29f12b5 --- /dev/null +++ b/layout/reftests/mathml/tablespacing-8b.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="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> diff --git a/layout/reftests/mathml/underbar-width-1-ref.xhtml b/layout/reftests/mathml/underbar-width-1-ref.xhtml new file mode 100644 index 000000000..737673ccb --- /dev/null +++ b/layout/reftests/mathml/underbar-width-1-ref.xhtml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <style type="text/css"> + html { background-color: grey; } + div { display: inline-block; + font-size: 30px; + line-height: 60px; /* Ensure space for underbar */ + border: 1px solid white; + padding: 2px; /* 10% error allowed in char selection */ + background-color: black; + color: red; } + </style> + </head> +<body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <munder> + <mn>1</mn> + <mo>̲</mo> + </munder> + </mphantom> + </math> + </div> +</body> +</html> diff --git a/layout/reftests/mathml/underbar-width-1.xhtml b/layout/reftests/mathml/underbar-width-1.xhtml new file mode 100644 index 000000000..473b25b91 --- /dev/null +++ b/layout/reftests/mathml/underbar-width-1.xhtml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Check width of stretchy OverBar</title> + <style type="text/css"> + html { background-color: grey; } + div { display: inline-block; + font-size: 30px; + line-height: 60px; /* Ensure space for underbar */ + border: 1px solid white; + padding: 2px; /* 10% error allowed in char selection */ + background-color: black; + color: black; } + </style> + </head> +<body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mn>1</mn> + <mo>̲</mo> + </munder> + </math> + </div> +</body> +</html> diff --git a/layout/reftests/mathml/whitespace-trim-1-ref.html b/layout/reftests/mathml/whitespace-trim-1-ref.html new file mode 100644 index 000000000..b2145dedf --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-1-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<math><mo minsize="10em">(</mo></math> diff --git a/layout/reftests/mathml/whitespace-trim-1.html b/layout/reftests/mathml/whitespace-trim-1.html new file mode 100644 index 000000000..59aeb9af8 --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-1.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<math><mo minsize="10em"> ( </mo></math> diff --git a/layout/reftests/mathml/whitespace-trim-2-ref.html b/layout/reftests/mathml/whitespace-trim-2-ref.html new file mode 100644 index 000000000..8b8f7b812 --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-2-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<math><mi>(</mi></math> diff --git a/layout/reftests/mathml/whitespace-trim-2.html b/layout/reftests/mathml/whitespace-trim-2.html new file mode 100644 index 000000000..d1c27c698 --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-2.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<math><mi> ( </mi></math> diff --git a/layout/reftests/mathml/whitespace-trim-3-ref.html b/layout/reftests/mathml/whitespace-trim-3-ref.html new file mode 100644 index 000000000..4a9928a69 --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-3-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<math><mi mathvariant="italic">ℎ</mi></math> diff --git a/layout/reftests/mathml/whitespace-trim-3.html b/layout/reftests/mathml/whitespace-trim-3.html new file mode 100644 index 000000000..61f16888a --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-3.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<math><mi mathvariant="italic"> ℎ </mi></math> diff --git a/layout/reftests/mathml/whitespace-trim-4-ref.html b/layout/reftests/mathml/whitespace-trim-4-ref.html new file mode 100644 index 000000000..f5951467c --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-4-ref.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<math><ms>x</ms></math> diff --git a/layout/reftests/mathml/whitespace-trim-4.html b/layout/reftests/mathml/whitespace-trim-4.html new file mode 100644 index 000000000..01120098c --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-4.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<math><ms> x </ms></math> diff --git a/layout/reftests/mathml/whitespace-trim-5-ref.html b/layout/reftests/mathml/whitespace-trim-5-ref.html new file mode 100644 index 000000000..560259c86 --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-5-ref.html @@ -0,0 +1,5 @@ +<!DOCTYPE html> +<math><mtext>|</mtext><mi>x</mi><mtext>|</mtext></math> +<math><mtext>|</mtext><mn>x</mn><mtext>|</mtext></math> +<math><mtext>|</mtext><mo>x</mo><mtext>|</mtext></math> +<math><mtext>|</mtext><mtext>x</mtext><mtext>|</mtext></math> diff --git a/layout/reftests/mathml/whitespace-trim-5.html b/layout/reftests/mathml/whitespace-trim-5.html new file mode 100644 index 000000000..7b0695055 --- /dev/null +++ b/layout/reftests/mathml/whitespace-trim-5.html @@ -0,0 +1,5 @@ +<!DOCTYPE html> +<math><mtext>|</mtext><mi> x </mi><mtext>|</mtext></math> +<math><mtext>|</mtext><mn> x </mn><mtext>|</mtext></math> +<math><mtext>|</mtext><mo> x </mo><mtext>|</mtext></math> +<math><mtext>|</mtext><mtext> x </mtext><mtext>|</mtext></math> |