Files
tubestation/layout/reftests/webcomponents/dynamic-insertion-point-distribution-1.html
Cameron McCormack d4b478fc05 Bug 1373155 - Disable Web Components in Servo-styled documents. r=wchen
MozReview-Commit-ID: 5IBBN2Gfazs
2017-06-15 19:39:58 +08:00

35 lines
819 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<head>
</head>
<body>
<div id="host"></div>
<script>
var host, root;
function run() {
host = document.getElementById("host");
root = host.createShadowRoot();
root.innerHTML = 'a <content></content> c';
}
function tweak() {
var span = document.createElement("span");
span.innerHTML = "b";
// Span should be distributed to insertion point between 'a' and 'c'.
host.appendChild(span);
document.documentElement.removeAttribute("class");
}
if (document.body.createShadowRoot) {
run();
window.addEventListener("MozReftestInvalidate", tweak);
} else {
document.documentElement.className = "";
}
</script>
</body>
</html>