1
0
Fork 0
firefox/testing/web-platform/tests/intersection-observer/resources/nested-cross-origin-grand-child-iframe.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

15 lines
413 B
HTML

<!DOCTYPE html>
<div id="target" style="height: 100px; background-color: green;"></div>
<script>
const observer = new IntersectionObserver(records => {
records.forEach(record => {
if (record.isIntersecting) {
window.top.postMessage(record.isIntersecting, "*");
}
});
}, {});
observer.observe(target);
window.addEventListener("load", () => {
window.top.postMessage("ready", "*");
});
</script>