Scrolling position for elements with hidden
overflow style are no longer restored
#1979
Labels
Milestone
hidden
overflow style are no longer restored
#1979
Summary
Our application uses axe-core to run accessibly and visual regression on test pages. When running axe we set the
restoreScroll
option totrue
to restore the scrolling position.This is how our test page used to look when using axe-core 3.2.2.
However, after upgrading to axe-core 3.3.0 or 3.4.0, our test page now looks like this:
The container element on this test page has an
overflow-x
andoverflow-y
style ofhidden
. The changes made on #1599 (released on axe-core 3.3.0) appears to no longer restore hidden elements back to their original position usingelm.scrollTop
.See this comment on #1951 for additional details.
Expectation:
To restore elements with an
overflow
style ofhidden
back to their original positionActual:
Elements with an
overflow
style ofhidden
are scrolled to a different position but are not restored.The text was updated successfully, but these errors were encountered: