You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a gatherer scroll down the page it can change the page layout, e.g. due lazy loading or infinite scroll loading more content. That might matter because:
page content varies between gatherers, so whether the page has been scrolled can affect the scores of audits that look at the DOM
the new tap targets gatherer first collects elements location and then scrolls through the page to call elementFromPoint. If an element moves while scrolling down the page the gatherer will think the tap target is invisible
if we take a full page screenshot it should match what other gatherers see so we correctly identify elements on it
Should we do anything to make this more consistent and predictable?
can we scroll all the way to the bottom of the page once before running any gatherers?
maybe after scrolling down once we could get the height of the page and if the page grows again we ignore content beyond that page height? That page height could also be the max height of the full page screenshot.
Discussed this the other day with @mattzeunert (Thanks for filing it!) and I think it would be a great followup to #8625 to scroll to the bottom of the current page height before all the afterPass runs to address most of this.
The ignoring all elements that get created seems a little tricker to enforce on gatherers, so I'm more willing to punt that for now/let individual gatherers handle that on a case-by-case basis.
the new tap targets gatherer first collects elements location and then scrolls through the page to call elementFromPoint. If an element moves while scrolling down the page the gatherer will think the tap target is invisible
if we take a full page screenshot it should match what other gatherers see so we correctly identify elements on it
When a gatherer scroll down the page it can change the page layout, e.g. due lazy loading or infinite scroll loading more content. That might matter because:
elementFromPoint
. If an element moves while scrolling down the page the gatherer will think the tap target is invisibleThe accessibility gatherer used to run early on and it scrolled to the bottom of the page. Moving it to run last had a minor impact on some sites' scores.
Should we do anything to make this more consistent and predictable?
cc @patrickhulce
The text was updated successfully, but these errors were encountered: