1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:37:35 +00:00

LibWeb: Implement IntersectionObserver "intersection roots" per spec

In particular, get the implicit root correctly for intersection
observers that don't have an explicit root specified.

This makes it possible to load the Terminal app on https://puter.com/
This commit is contained in:
Andreas Kling 2024-02-23 20:50:19 +01:00
parent 8586897928
commit 8addfc14af
3 changed files with 27 additions and 3 deletions

View file

@ -0,0 +1,17 @@
<body>
<iframe></iframe>
<script src="../include.js"></script>
<script>
asyncTest(done => {
let iframe = document.querySelector("iframe");
iframe.src =
"data:text/html," +
encodeURI("<script>new IntersectionObserver(function() { }, { })<" + "/script>");
iframe.onload = function () {
iframe.remove();
done();
println("PASS if we didn't crash!");
};
});
</script>
</body>