4
I would like to build a verification script, because it is often difficult to find why the page is scrolling, especially when we use some responsive framework that has a lot of css code and a lot of js code manipulating.
I need tips to make a logic that would point out to me the objects that are causing the scrollbar to appear. I have no idea how to start. Suddenly we can together build something that can be useful to everyone, or if someone already has a better ready.
My test code is the answer in case someone wants to improve.
One way that should work (without thinking about efficiency) is to check the position and height of all page elements, and see if any of them exceeds the height of the window.
– bfavaretto