tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 6ba07bf25563922c1d2c8f228c4941902627d78f
parent 453b0870e9618f66ae8511b6aab37306ff3d3ab5
Author: eri <eri@igalia.com>
Date:   Thu,  9 Oct 2025 20:34:43 +0000

Bug 1992202 [wpt PR 55173] - Verify that maction doesn't react to click events, a=testonly

Automatic update from web-platform-tests
Verify that maction doesn't react to click events

--

wpt-commits: 34e2cc18653e24007b5e2ec07cde9f2f50c15fb8
wpt-pr: 55173

Diffstat:
Atesting/web-platform/tests/mathml/relations/html5-tree/maction-click-ref.html | 16++++++++++++++++
Atesting/web-platform/tests/mathml/relations/html5-tree/maction-click.html | 28++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/mathml/relations/html5-tree/maction-click-ref.html b/testing/web-platform/tests/mathml/relations/html5-tree/maction-click-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>maction click (reference)</title> + </head> + <body> + <p>This test passes if you see a green square.</p> + <math> + <mrow> + <mspace width="150px" height="150px" style="background: green"/> + </mrow> + </math> + </body> +</html> + diff --git a/testing/web-platform/tests/mathml/relations/html5-tree/maction-click.html b/testing/web-platform/tests/mathml/relations/html5-tree/maction-click.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <meta charset="utf-8"/> + <title>maction click</title> + <link rel="help" href="https://www.w3.org/TR/MathML3/chapter3.html#presm.maction"/> + <link rel="help" href="https://w3c.github.io/mathml-core/#dfn-maction"/> + <link rel="match" href="maction-click-ref.html"/> + <meta name="assert" content="Verify that maction doesn't respond to click events."/> + <script type="text/javascript"> + function test() { + var event = new MouseEvent("click", { bubbles: true, cancelable: true }); + document.getElementById("target").dispatchEvent(event); + document.documentElement.className = ""; + } + </script> + </head> + <body onload="test()"> + <p>This test passes if you see a green square.</p> + <math> + <maction actiontype="toggle" id="target"> + <mspace width="150px" height="150px" style="background: green"/> + <mspace width="150px" height="150px" style="background: red"/> + </maction> + </math> + </body> +</html> +