Skip to content

docs: fast visibility scrolls off-screen elements into view#6434

Open
mschile wants to merge 3 commits into
release/15.15.0from
mschile/fast-visibility-scroll-into-view
Open

docs: fast visibility scrolls off-screen elements into view#6434
mschile wants to merge 3 commits into
release/15.15.0from
mschile/fast-visibility-scroll-into-view

Conversation

@mschile
Copy link
Copy Markdown
Contributor

@mschile mschile commented May 4, 2026

Updates the experimentalFastVisibility documentation to reflect a behavior change in Cypress 15.15.0: elements below the fold are now automatically scrolled into view per the scrollBehavior config before visibility is checked, matching the behavior of action commands like cy.click().

Elements positioned outside the scrollable document bounds (e.g. position: absolute; top: -100px) cannot be scrolled into view and continue to be reported as hidden.

Pairs with cypress-io/cypress#33736, which fixes cypress-io/cypress#33045.

Pages updated

  • docs/app/core-concepts/interacting-with-elements.mdx — Updated the "It is positioned fully outside of the browser viewport" bullet, removed the obsolete viewport limitation, and rewrote the "Elements Outside Viewport" compatibility issue.
  • docs/app/references/experiments.mdx — Removed the obsolete viewport caution note.

Note

Low Risk
Low risk documentation-only updates that adjust guidance around experimentalFastVisibility semantics (auto-scrolling below-the-fold via scrollBehavior) and remove an obsolete limitation note.

Overview
Updates experimentalFastVisibility docs to reflect that elements below the fold are now auto-scrolled into view according to scrollBehavior before visibility is checked (matching action commands), while elements outside scrollable document bounds remain hidden.

Removes outdated statements claiming viewport visibility is not handled yet, and expands the “Elements Outside Viewport” compatibility guidance (including behavior under overflow: hidden/clip).

Reviewed by Cursor Bugbot for commit 229a09d. Bugbot is set up for automated code reviews on this repo. Configure here.

Updates the experimentalFastVisibility documentation to reflect that
elements below the fold are automatically scrolled into view per the
scrollBehavior config before visibility is checked, matching the behavior
of action commands like cy.click().

Elements positioned outside the scrollable document bounds (e.g. negative
absolute positioning) cannot be scrolled into view and remain hidden.

Pairs with cypress-io/cypress#33736.
@cypress
Copy link
Copy Markdown

cypress Bot commented May 4, 2026

cypress-documentation    Run #1082

Run Properties:  status check passed Passed #1082  •  git commit 229a09d96a: Merge branch 'release/15.15.0' into mschile/fast-visibility-scroll-into-view
Project cypress-documentation
Branch Review mschile/fast-visibility-scroll-into-view
Run status status check passed Passed #1082
Run duration 06m 45s
Commit git commit 229a09d96a: Merge branch 'release/15.15.0' into mschile/fast-visibility-scroll-into-view
Committer Matt Schile
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 322
View all changes introduced in this branch ↗︎
UI Coverage  47.51%
  Untested elements 337  
  Tested elements 3  
Accessibility  96.88%
  Failed rules  1 critical   3 serious   4 moderate   1 minor
  Failed elements 37  

Elements inside overflow: hidden / clip ancestors are not scrolled into
view, since scrollIntoView would programmatically scroll the clipping
container and expose content the test author intentionally clipped.

Pairs with cypress-io/cypress#33736.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants