mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
We were failing to actually climb up the containing block chain, causing this API to infinite loop for anything but the most trivial cases. By fixing the loop structure, we also make a bunch of the already imported WPT tests pass. :^)
9 lines
206 B
HTML
9 lines
206 B
HTML
<!doctype html>
|
|
<script src="../include.js"></script>
|
|
<body><div id=foo><div id=bar></div></div>
|
|
<script>
|
|
test(() => {
|
|
bar.scrollParent;
|
|
println("PASS (didn't hang)");
|
|
});
|
|
</script>
|