diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-04-18 23:39:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 23:39:21 +0300 |
commit | 7a03ce0194fafb0c2e49994dc6efd33d5fdb6a07 (patch) | |
tree | 68a6bc438180e9b3871cee4755a78b18ba3fa3e1 /test/data/html/test-document2.html | |
parent | 5b3d7fadc3534ba27eee971dac4ba5ee475c4e3d (diff) | |
parent | d66ca93ce4d6a4c9814bac4cc508c24ff87b8f69 (diff) |
Merge pull request #460 from siikamiika/iframe-popup-edge-cases
Iframe popup edge cases
Diffstat (limited to 'test/data/html/test-document2.html')
-rw-r--r-- | test/data/html/test-document2.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/data/html/test-document2.html b/test/data/html/test-document2.html index 3a22a5bf..b2046dfd 100644 --- a/test/data/html/test-document2.html +++ b/test/data/html/test-document2.html @@ -77,5 +77,22 @@ document.querySelector('#fullscreen-link1').addEventListener('click', () => togg </script> </div> + <div class="test"> + <div class="description"><iframe> element inside of an open shadow DOM.</div> + <div id="shadow-iframe-container-open"></div> + <template id="shadow-iframe-container-open-content-template"> + <iframe src="test-document2-frame1.html" allowfullscreen="true" style="width: 100%; height: 200px; border: 1px solid #d8d8d8;"></iframe> + </template> + <script> +(() => { + const shadowIframeContainer = document.querySelector('#shadow-iframe-container-open'); + const shadow = shadowIframeContainer.attachShadow({mode: 'open'}); + const template = document.querySelector('#shadow-iframe-container-open-content-template').content; + const content = document.importNode(template, true); + shadow.appendChild(content); +})(); + </script> + </div> + </body> -</html>
\ No newline at end of file +</html> |