mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
bdf8958759
--HG-- rename : layout/reftests/webcomponents/basic-insertion-point-1-ref.html => layout/reftests/webcomponents/basic-slot-5-ref.html rename : layout/reftests/webcomponents/basic-insertion-point-1.html => layout/reftests/webcomponents/basic-slot-5.html rename : layout/reftests/webcomponents/basic-insertion-point-2-ref.html => layout/reftests/webcomponents/basic-slot-6-ref.html rename : layout/reftests/webcomponents/basic-insertion-point-2.html => layout/reftests/webcomponents/basic-slot-6.html
28 lines
653 B
HTML
28 lines
653 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<div id="host"></div>
|
|
<script>
|
|
var host, root;
|
|
|
|
host = document.getElementById("host");
|
|
root = host.attachShadow({mode: 'open'});
|
|
root.innerHTML = 'a <slot></slot> 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");
|
|
}
|
|
|
|
window.addEventListener("MozReftestInvalidate", tweak);
|
|
</script>
|
|
</body>
|
|
</html>
|