Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollParent.txt
Andreas Kling b3d9e39bad LibWeb: Avoid infinite loop in HTMLElement.scrollParent
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. :^)
2025-06-30 20:38:21 +01:00

15 lines
587 B
Plaintext

Harness status: OK
Found 9 tests
7 Pass
2 Fail
Pass scrollParent returns the nearest scroll container.
Pass hidden element is a scroll container.
Pass Element with no box has null scrollParent.
Pass scrollParent follows absolute positioned containing block chain.
Fail scrollParent follows fixed positioned containing block chain.
Fail scrollParent of element fixed to root is null.
Pass scrollParent of child in root viewport returns document scrolling element.
Pass scrollParent of fixed element contained within root is document scrolling element.
Pass scrollParent of body is null.