-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[BUG] elementHandle.scrollIntoViewIfNeeded doesn't work properly #4134
Comments
Is it possible to share the url, or save the page as mhtml and attach here, or provide a sample page where this problem does reproduce? That would help greatly! |
Sorry for the late response. I looked at this page, and there is a <style>
* {
padding: 0;
margin: 0;
}
li {
height: 80px;
border: 1px solid black;
}
ol {
padding-top: 104px;
}
div.fixed {
position: fixed;
z-index: 1001;
width: 100%;
background: red;
height: 104px;
}
</style>
<div class=fixed></div>
<ol>
<li>hi1</li><li>hi2</li><li>hi3</li><li>hi4</li><li>hi5</li><li>hi6</li><li>hi7</li><li>hi8</li><li>hi9</li><li>hi10</li><li>hi11</li><li>hi12</li><li>hi13</li><li>hi14</li>
</ol> |
Duplicate of #3105. |
Oh nice! I am glad you were able to recreate it in a standalone manner and that this is a known bug. Thanks for following up on this. :) |
Context:
Describe the bug
elementHandle.scrollIntoViewIfNeeded
won't scroll if the element is partially visible. I think this might be unexpected behavior but I don't see any details about this method on CDP.Here's the page with selected element that I am trying to scroll into view
The text was updated successfully, but these errors were encountered: