summaryrefslogtreecommitdiff
path: root/test/data/html/test-document2-script.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/html/test-document2-script.js')
-rw-r--r--test/data/html/test-document2-script.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/data/html/test-document2-script.js b/test/data/html/test-document2-script.js
index ab516a4e..01bc211f 100644
--- a/test/data/html/test-document2-script.js
+++ b/test/data/html/test-document2-script.js
@@ -58,6 +58,10 @@ function setup(container, fullscreenElement=null) {
if (template !== null && templateContentContainer !== null) {
const mode = container.dataset.shadowMode;
const shadow = templateContentContainer.attachShadow({mode});
+
+ const containerStyles = document.querySelector('#container-styles');
+ shadow.appendChild(containerStyles.cloneNode(true));
+
const content = document.importNode(template.content, true);
setup(content);
shadow.appendChild(content);