commit bc0126d69fb1bc9244d2a48db7fb8f38bee93261
parent fb525cc09c4a55837788e224697a69504b2a2ec6
Author: eri <eri@igalia.com>
Date: Thu, 27 Nov 2025 15:25:16 +0000
Bug 2001569 [wpt PR 56180] - Add test for the styling of elements outside of the MathML namespace, a=testonly
Automatic update from web-platform-tests
Add test for the styling of elements outside of the MathML namespace (#56180)
--
wpt-commits: 4f8dbc6e2fcf5bf1c1d72391c5c6de7d22ff4a16
wpt-pr: 56180
Diffstat:
2 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/mathml/relations/css-styling/non-mathml-namespace-001-ref.html b/testing/web-platform/tests/mathml/relations/css-styling/non-mathml-namespace-001-ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Non MathML namespace (reference)</title>
+ </head>
+ <body>
+ <div>
+ <span><span>Hello</span> <span>World!</span></span><span><span>Hello</span> <span>World!</span></span>
+ </div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/mathml/relations/css-styling/non-mathml-namespace-001.html b/testing/web-platform/tests/mathml/relations/css-styling/non-mathml-namespace-001.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Non MathML namespace</title>
+ <link rel="help" href="https://www.w3.org/TR/mathml-core/#user-agent-stylesheet">
+ <link rel="match" href="non-mathml-namespace-001-ref.html">
+ <meta name="assert" content="Verify that MathML stylesheets only apply to its namespace.">
+ </head>
+ <body>
+ <div id="container"></div>
+ <script>
+ ["semantics", "maction"].forEach((tagName) => {
+ const nonMathMLNS = "http://www.w3.org/1999/xhtml";
+ let el = document.createElement(tagName, nonMathMLNS);
+ el.innerHTML = "<span>Hello</span> <span>World!</span>";
+ container.appendChild(el);
+ });
+ </script>
+ </body>
+</html>