Open xNaCly opened 5 months ago
I tested the same page in Firefox (129.0), and Chromium (127.0.6533.88). The way it is handled seems more complex than I initially thought.
I will list theirs comportment from a user perspective. F : Firefox; C: Chromium; L: Ladybird
I did not find any sort of standard about how scroll should be handled in such cases (thought I am a newcomer here, and it is quite possible I missed the document)
It seems like there is a place for interpretation and user experience in this particular problem.
I will try to implement Chromium's behavior since it seems to be the simplest.
The term for this is "scroll chaining". That spec defines new CSS properties for controlling how this works, which might be worth looking into when implementing this.
Reproducing the issue:
Expected Behaviour:
The container should capture the scroll up until it finishes scrolling the content, afterward the page scroll should continue, with ladybird it stops.