1
0
Fork 0
firefox/testing/web-platform/tests/intersection-observer/resources/v2-midframe.sub.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

18 lines
418 B
HTML

<!DOCTYPE html>
<style>
iframe {
width: 300px;
height: 150px;
border: none;
}
</style>
<iframe src="http://{{domains[www2]}}:{{ports[http][0]}}/intersection-observer/resources/v2-subframe.html"></iframe>
<script>
window.addEventListener("message", event => {
requestAnimationFrame(() => setTimeout(() => {
document.querySelector('iframe').contentWindow.postMessage(event.data, "*");
}));
});
</script>