mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02: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:
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8addfc14af Pull-request: https://github.com/SerenityOS/serenity/pull/23328 Reviewed-by: https://github.com/tcl3
@@ -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>
|
||||
Reference in New Issue
Block a user