diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /testing/web-platform/tests/mathml/presentation-markup/mrow/legacy-mstyle-attributes.html | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/mathml/presentation-markup/mrow/legacy-mstyle-attributes.html')
-rw-r--r-- | testing/web-platform/tests/mathml/presentation-markup/mrow/legacy-mstyle-attributes.html | 136 |
1 files changed, 119 insertions, 17 deletions
diff --git a/testing/web-platform/tests/mathml/presentation-markup/mrow/legacy-mstyle-attributes.html b/testing/web-platform/tests/mathml/presentation-markup/mrow/legacy-mstyle-attributes.html index 2463c40476..0b14ac5334 100644 --- a/testing/web-platform/tests/mathml/presentation-markup/mrow/legacy-mstyle-attributes.html +++ b/testing/web-platform/tests/mathml/presentation-markup/mrow/legacy-mstyle-attributes.html @@ -35,11 +35,12 @@ </head> <body> <div id="log"></div> - <!-- Note: mpadded attributes are not tested since MathML3 did not allow to - set them from mstyle. Also, it is not clear whether munderover's - accent/accentunder could be applied from mstyle, given that the former - clashes with mo@accent. Other legacy mstyle attributes not in MathML - Core or without visual effect are not tested. + <!-- Note: In earlier versions of MathML, putting some attributes on the + mstyle element was supposed to produce the same rendering as putting them + on the all descendants (with some exceptions). In MathML Core, relevant + style attributes are implemented as CSS properties and are no longer + specific to the mstyle element. The tests below verify that attributes + on mstyle that are not mapped to CSS have no effect. --> <p class="TestContainer" id="mspace"> <math> @@ -84,12 +85,12 @@ <mn>3</mn> </munder> </mstyle> - <mstyle accent="false"> - <mover> - <mn>4</mn> - <mo>⇀</mo> - </mover> - </mstyle> + <!-- Note: accent was a shared attribute name for mover and mo, so + make mstyle an ancestor of mo but not of mover. --> + <mover> + <mn>4</mn> + <mstyle accent="false"><mo>⇀</mo></mstyle> + </mover> <mstyle stretchy="false" symmetric="false" maxsize="20px"> <mrow> <mo>|</mo> @@ -102,6 +103,15 @@ <mn>4</mn> </mrow> </mstyle> + <mstyle form="prefix"> + <mrow> + <mn>1</mn> + <!-- Infix and prefix forms of − do not have the same lspace/rspace + values in the operator dictionary --> + <mo>−</mo> + <mn>2</mn> + </mrow> + </mstyle> </math> <math displaystyle="true"> <mstyle> @@ -115,12 +125,10 @@ <mn>3</mn> </munder> </mstyle> - <mstyle> - <mover> - <mn>4</mn> - <mo>⇀</mo> - </mover> - </mstyle> + <mover> + <mn>4</mn> + <mstyle><mo>⇀</mo></mstyle> + </mover> <mstyle> <mrow> <mo>|</mo> @@ -133,6 +141,13 @@ <mn>4</mn> </mrow> </mstyle> + <mstyle> + <mrow> + <mn>1</mn> + <mo>−</mo> + <mn>2</mn> + </mrow> + </mstyle> </math> </p> <!-- notation attribute is from MathML3's menclose element --> @@ -160,5 +175,92 @@ </mstyle> </math> </p> + <p class="TestContainer" id="mpadded"> + <math> + <mstyle width="100px" height="50px" depth="50px" + lspace="10px" voffset="15px"> + <mpadded style="background: lightblue"> + <mspace width="10px" height="10px" style="background: black"></mspace> + </mpadded> + </mstyle> + </math> + <math> + <mstyle> + <mpadded style="background: lightblue"> + <mspace width="10px" height="10px" style="background: black"></mspace> + </mpadded> + </mstyle> + </math> + </p> + <p class="TestContainer" id="mover"> + <math> + <mstyle accent="true"> + <mover> + <mn>1</mn> + <mn>2</mn> + </mover> + </mstyle> + </math> + <math> + <mstyle> + <mover> + <mn>1</mn> + <mn>2</mn> + </mover> + </mstyle> + </math> + </p> + <p class="TestContainer" id="munder"> + <math> + <mstyle accentunder="true"> + <munder> + <mn>1</mn> + <mn>2</mn> + </munder> + </mstyle> + </math> + <math> + <mstyle> + <munder> + <mn>1</mn> + <mn>2</mn> + </munder> + </mstyle> + </math> + </p> + <p class="TestContainer" id="munderover"> + <math> + <mstyle accent="true"> + <munderover> + <mn>1</mn> + <mn>2</mn> + <mn>3</mn> + </munderover> + </mstyle> + <mstyle accentunder="true"> + <munderover> + <mn>1</mn> + <mn>2</mn> + <mn>3</mn> + </munderover> + </mstyle> + </math> + <math> + <mstyle> + <munderover> + <mn>1</mn> + <mn>2</mn> + <mn>3</mn> + </munderover> + </mstyle> + <mstyle> + <munderover> + <mn>1</mn> + <mn>2</mn> + <mn>3</mn> + </munderover> + </mstyle> + </math> + </p> </body> </html> |