1
0
Fork 0
firefox/testing/web-platform/tests/permissions-policy/experimental-features/resources/vertical-scroll-scrollbar-ref.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

13 lines
492 B
HTML

<!doctype html>
<title>Ref: vertical-scroll test for scrollbar</title>
<iframe src="/permissions-policy/experimental-features/resources/vertical-scroll-scrollable-content.html"></iframe>
<script>
let iframe = document.querySelector("iframe");
let overflow_y = "visible";
if (window.location.search.indexOf("no-vertical-scrollbar") !== -1)
overflow_y = "hidden"
iframe.addEventListener("load", () => {
iframe.contentDocument.body.style.overflowY = overflow_y;
});
</script>