mirror of
https://github.com/servo/servo.git
synced 2025-07-13 18:33:40 +01:00
13 lines
488 B
HTML
13 lines
488 B
HTML
<!doctype html>
|
|
<title>Ref: vertical-scroll test for scrollbar</title>
|
|
<iframe src="/feature-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>
|
|
|