root 1
@@ -157,6 +159,7 @@
test(() => {
const template = document.querySelector('#template-containing-shadow');
const host1 = document.createElement('div');
+ host1.style.display = 'none';
document.body.appendChild(host1);
host1.appendChild(template.content.cloneNode(true));
let innerDiv = host1.querySelector('div.innerdiv');
@@ -165,6 +168,7 @@
assert_equals(innerDiv.querySelector('template'), null, "No leftover template node");
const host2 = document.createElement('div');
+ host2.style.display = 'none';
document.body.appendChild(host2);
host2.appendChild(template.content.cloneNode(true));
innerDiv = host2.querySelector('div.innerdiv');
@@ -187,6 +191,7 @@
test(() => {
const template = document.querySelector('#template-containing-ua-shadow');
const host = document.createElement('div');
+ host.style.display = 'none';
document.body.appendChild(host);
// Mostly make sure clone of template *does* clone the
// shadow root, and doesn't crash on cloning the