summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions-policy/experimental-features/resources/vertical-scroll-scrollbar-ref.html
blob: fd432b33f69330f566b19688f6f90c8c1b2c8ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!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>