Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Intersection observer with cross-origin iframe and tall viewport</title>
<link rel="match" href="cross-origin-tall-iframe-rendering-ref.html">
<style>
:root { scrollbar-width: none }
.spacer {
height: calc(200vh + 100px);
}
iframe {
width: 160px;
height: 5100px;
border: 0;
outline: 1px solid;
}
</style>
<div class="spacer"></div>
<div class="spacer"></div>
<script>
document.querySelector("iframe").scrollIntoView({ block: "end" });
</script>