We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run_the_update_intersection_observations_steps is not invoked when scroll offset inside box with scrollable overflow changes.
run_the_update_intersection_observations_steps
<!DOCTYPE html> <html lang="en"> <head> <style> .scroll-box { width: 300px; height: 300px; overflow: scroll; border: 2px solid black; } .content-box { width: 100%; height: 600px; position: relative; } .target-box { width: 100px; height: 100px; background-color: red; position: absolute; top: 500px; } </style> </head> <body> <div class="scroll-box"> <div class="content-box"> <div class="target-box"></div> </div> </div> <script> function onIntersection(entries) { entries.forEach((entry) => { if (entry.isIntersecting) { console.log("The box is now visible."); } else { console.log("The box is not visible."); } }); } let observer = new IntersectionObserver(onIntersection, { root: document.querySelector(".scroll-box"), threshold: 1.0, }); observer.observe(document.querySelector(".target-box")); </script> </body> </html>
The text was updated successfully, but these errors were encountered:
LibWeb: Do not include box's own scroll offset in get_client_rects()
460c53a
Fixes SerenityOS#23631
e232a84
Fixes #23631
Successfully merging a pull request may close this issue.
run_the_update_intersection_observations_steps
is not invoked when scroll offset inside box with scrollable overflow changes.The text was updated successfully, but these errors were encountered: