зеркало из https://github.com/mozilla/gecko-dev.git
21 строка
597 B
HTML
21 строка
597 B
HTML
<!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");
|
|
if (x.createShadowRoot) {
|
|
x.createShadowRoot();
|
|
x.shadowRoot.innerHTML =
|
|
'<math><msup><mi>X</mi><mi>X</mi></msup></math>';
|
|
}
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
window.addEventListener("MozReftestInvalidate", insertShadowMathML);
|
|
</script>
|
|
</body>
|
|
</html>
|