mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02: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. :^)
15 lines
587 B
Plaintext
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. |