Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /fenced-frame/resize-lock-zoom.https.html - WPT Dashboard Interop Dashboard
<!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>