cypress-documentation icon indicating copy to clipboard operation
cypress-documentation copied to clipboard

What does "nearest" mean for scrollBehavior?

Open verheyenkoen opened this issue 9 months ago • 0 comments

Subject

Guides

Description

The Actionabiliy page (and a few other pages) mentions the "nearest" option for scrollBehavior but I can't find a definition for that. Does that mean the parent node (like "closest" in jQuery/Cypress)? The other options are more self-descriptive but "nearest" is a bit smoky so I'd like that clarified.

verheyenkoen avatar Sep 21 '23 13:09 verheyenkoen