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

`overflow: auto` div shouldn't be scrollable when there is an extra space. #14717

Open
canova opened this issue Dec 24, 2016 · 1 comment
Open

`overflow: auto` div shouldn't be scrollable when there is an extra space. #14717

canova opened this issue Dec 24, 2016 · 1 comment

Comments

@canova
Copy link
Member

@canova canova commented Dec 24, 2016

overflow: auto div shouldn't be scrollable when there is an extra space at the bottom. Other browsers don't scroll either. This usually blocks scrolling the main page. I used <br> to add space to bottom in this test case. But this affects when padding or margin is specified too.

Test case:

<!DOCTYPE html>
<html>
<head>
    <style>
        div { background: lightgrey; overflow: auto; }
    </style>
</head>
<body>
top
<div>
    aa<br>
</div>
bottom
</body>
</html>

In this test case, div is not overflowed but when you scroll in the div's area, it tries to scroll the div which is supposed to stay still.

@shinglyu
Copy link
Member

@shinglyu shinglyu commented Dec 30, 2016

(cc myself)

@nox nox added the C-reproduced label Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.