diff options
Diffstat (limited to 'testing/web-platform/tests/fenced-frame/resize-lock-zoom.https.html')
-rw-r--r-- | testing/web-platform/tests/fenced-frame/resize-lock-zoom.https.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/web-platform/tests/fenced-frame/resize-lock-zoom.https.html b/testing/web-platform/tests/fenced-frame/resize-lock-zoom.https.html new file mode 100644 index 0000000000..783f51d84e --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/resize-lock-zoom.https.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> + <title>Test FencedFrames does not leak the CSS zoom property</title> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <script src="resources/utils.js"></script> + <script src="/common/utils.js"></script> + + <body> + + <script> + promise_test(async () => { + const resize_lock_inner_page_is_ready_key = token(); + const resize_lock_resize_is_done_key = token(); + const resize_lock_report_inner_dimensions_key = token(); + + const frame = attachFencedFrame(generateURL( + "resources/resize-lock-inner.html", + [resize_lock_inner_page_is_ready_key, + resize_lock_resize_is_done_key, + resize_lock_report_inner_dimensions_key])); + + await nextValueFromServer(resize_lock_inner_page_is_ready_key); + + document.body.style.zoom = '2'; + + writeValueToServer(resize_lock_resize_is_done_key, + "outer_page_attempted_resize"); + + let result = + await nextValueFromServer(resize_lock_report_inner_dimensions_key); + assert_equals(result, "300x150", + "fenced frame dimensions should not be updated by " + + "parent page"); + + }, "Test Resize Lock"); + </script> + + </body> +</html> |