diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/mozilla/tests/mathml/fonts/dtls-2.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/mozilla/tests/mathml/fonts/dtls-2.html')
-rw-r--r-- | testing/web-platform/mozilla/tests/mathml/fonts/dtls-2.html | 214 |
1 files changed, 214 insertions, 0 deletions
diff --git a/testing/web-platform/mozilla/tests/mathml/fonts/dtls-2.html b/testing/web-platform/mozilla/tests/mathml/fonts/dtls-2.html new file mode 100644 index 0000000000..63a42d4a22 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/fonts/dtls-2.html @@ -0,0 +1,214 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <link rel="match" href="dtls-2-ref.html"/> + <style type="text/css" media="screen, print"> + @font-face { + font-family: "dtls-1"; + src: url(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"); + } + document.documentElement.addEventListener("TestRendered", doTest); + </script> + </body> +</html> |