diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-04 22:42:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 22:42:48 -0400 |
commit | 167e83c14794437e43b7df2017efab1e7e060a99 (patch) | |
tree | c3ea69779daee88be9c371785e78aedca996a94f /test/data/html/test-document2-frame1.html | |
parent | a0c4ce779d35cab39c62ca42ad3fe58a82faa1bb (diff) | |
parent | a4c7d243f4cddfc4e2b29132fe65fe07ff86bc36 (diff) |
Merge pull request #430 from toasted-nutbread/manual-dom-tests
Create some tests for fullscreen elements, <iframe>s, and shadow DOMs
Diffstat (limited to 'test/data/html/test-document2-frame1.html')
-rw-r--r-- | test/data/html/test-document2-frame1.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/data/html/test-document2-frame1.html b/test/data/html/test-document2-frame1.html new file mode 100644 index 00000000..3b85cdc5 --- /dev/null +++ b/test/data/html/test-document2-frame1.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <title>Yomichan Tests</title> + <script src="test-document2-script.js"></script> + <style> +body { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + padding: 0; + margin: 0; + background-color: #f8f8f8; +} +a, a:visited { + color: #1080c0; + text-decoration: underline; +} +.content { + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + padding: 0.5em; + background-color: #f8f8f8; +} + </style> + </head> +<body><div class="content"> +<div> + ありがとう +</div> +<div> + <a href="#" id="fullscreen-link">Toggle fullscreen</a> + <script> +document.querySelector('#fullscreen-link').addEventListener('click', () => toggleFullscreen(document.body), false); + </script> +</div> +</div></body> +</html>
\ No newline at end of file |