summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/shadow-dom-1.html
blob: 623f1afb8f5ced1f63de24b933a8addc631dda4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>Test for bug 1066554 - Shadow DOM loads MathML stylesheets as needed</title>
<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");
    }
    window.addEventListener("MozReftestInvalidate", insertShadowMathML);
  </script>
</body>
</html>