Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling position for elements with hidden overflow style are no longer restored #1979

Closed
benbcai opened this issue Jan 13, 2020 · 3 comments
Labels
color contrast Color contrast issues core Issues in the core code (lib/core) fix Bug fixes
Milestone

Comments

@benbcai
Copy link
Contributor

benbcai commented Jan 13, 2020

Summary

Our application uses axe-core to run accessibly and visual regression on test pages. When running axe we set the restoreScroll option to true to restore the scrolling position.

This is how our test page used to look when using axe-core 3.2.2.
Screen Shot 2020-01-13 at 10 32 31 AM

However, after upgrading to axe-core 3.3.0 or 3.4.0, our test page now looks like this:
Screen Shot 2020-01-13 at 10 35 50 AM

The container element on this test page has an overflow-x and overflow-y style of hidden. The changes made on #1599 (released on axe-core 3.3.0) appears to no longer restore hidden elements back to their original position using elm.scrollTop.

See this comment on #1951 for additional details.

Expectation:

To restore elements with an overflow style of hidden back to their original position

Actual:

Elements with an overflow style of hidden are scrolled to a different position but are not restored.


axe-core version: 3.4.0

Browser and Assistive Technology versions

For Tooling issues:
- Node version: v10.17.0
- Platform:  Mac
@WilcoFiers
Copy link
Contributor

Hmm, that's very odd. Thank you for reporting. For axe-core 3.5, which we're planning to release in a month, axe-core will no longer be scrolling at all. So this problem should go away soon.

@WilcoFiers WilcoFiers added this to the Axe-core 3.5 milestone Jan 14, 2020
@WilcoFiers WilcoFiers added color contrast Color contrast issues core Issues in the core code (lib/core) fix Bug fixes labels Jan 14, 2020
@straker
Copy link
Contributor

straker commented Jan 14, 2020

If you manually run axe using https://unpkg.com/axe-core@next/axe.js, does it give you issues with the scroll?

@benbcai
Copy link
Contributor Author

benbcai commented Jan 14, 2020

@WilcoFiers @straker I pulled down the develop branch that includes the changes from #1943 and this issue is resolved. I'll close this issue. I'm seeing other failures (unrelated to this issue) when using the develop branch but I'll investigate further.

@benbcai benbcai closed this as completed Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
color contrast Color contrast issues core Issues in the core code (lib/core) fix Bug fixes
Projects
None yet
Development

No branches or pull requests

3 participants