Skip to content

Commit 2781561

Browse files
committed
Add test for the styling of elements outside of the MathML namespace
1 parent 8f7adfa commit 2781561

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Non MathML namespace (reference)</title>
6+
</head>
7+
<body>
8+
<div>
9+
<span><span>Hello</span> <span>World!</span></span><span><span>Hello</span> <span>World!</span></span>
10+
</div>
11+
</body>
12+
</html>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Non MathML namespace</title>
6+
<link rel="help" href="https://www.w3.org/TR/mathml-core/#user-agent-stylesheet">
7+
<link rel="match" href="non-mathml-namespace-001-ref.html">
8+
<meta name="assert" content="Verify that MathML stylesheets only apply to its namespace.">
9+
</head>
10+
<body>
11+
<div id="container"></div>
12+
<script>
13+
["semantics", "maction"].forEach((tagName) => {
14+
const nonMathMLNS = "http://www.w3.org/1999/xhtml";
15+
let el = document.createElement(tagName, nonMathMLNS);
16+
el.innerHTML = "<span>Hello</span> <span>World!</span>";
17+
container.appendChild(el);
18+
});
19+
</script>
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)