shadow-dom-mozilla-1066554.html (644B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>Test for Mozilla bug 1066554 - Shadow DOM loads MathML stylesheets as needed</title> 5 <link rel="match" href="shadow-dom-mozilla-1066554-ref.html"/> 6 <body> 7 <div id="x"></div> 8 <script> 9 function insertShadowMathML() { 10 var x = document.getElementById("x"); 11 x.attachShadow({ mode: "open" }); 12 x.shadowRoot.innerHTML = 13 '<math><msup><mi>X</mi><mi>X</mi></msup></math>'; 14 document.documentElement.removeAttribute("class"); 15 } 16 document.documentElement.addEventListener("TestRendered", insertShadowMathML); 17 </script> 18 </body> 19 </html>