1
0
Fork 0
firefox/testing/web-platform/tests/mathml/relations/html5-tree/shadow-dom-mozilla-1066554.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
644 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>Test for Mozilla bug 1066554 - Shadow DOM loads MathML stylesheets as needed</title>
<link rel="match" href="shadow-dom-mozilla-1066554-ref.html"/>
<body>
<div id="x"></div>
<script>
function insertShadowMathML() {
var x = document.getElementById("x");
x.attachShadow({ mode: "open" });
x.shadowRoot.innerHTML =
'<math><msup><mi>X</mi><mi>X</mi></msup></math>';
document.documentElement.removeAttribute("class");
}
document.documentElement.addEventListener("TestRendered", insertShadowMathML);
</script>
</body>
</html>