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

Stuck inside a box while scrolling #23918

Closed
gterzian opened this issue Aug 6, 2019 · 3 comments · Fixed by #29745
Closed

Stuck inside a box while scrolling #23918

gterzian opened this issue Aug 6, 2019 · 3 comments · Fixed by #29745

Comments

@gterzian
Copy link
Member

gterzian commented Aug 6, 2019

Steps to reproduce:

On mac

  1. ./mach run https://en.wikipedia.org/wiki/Main_Page --release
  2. Scroll to "today's featured artice".
  3. Once with the cursor inside that box, try to scroll up, or down.
  4. In both cases, you'll hit a "scroll bounce" as if hitting the limit of a page.
  5. Go with the cursor to the left pannel, and you'll be able to scroll up again.

Screen Shot 2019-08-06 at 5 00 48 PM

@gterzian gterzian changed the title Stuck inside a box while scrolling-up Stuck inside a box while scrolling Aug 6, 2019
@CYBAI
Copy link
Member

CYBAI commented Aug 6, 2019

I just recorded a gif to show the behavior.

wiki

@CYBAI
Copy link
Member

CYBAI commented Aug 6, 2019

Here's the minimized test case.

<style>
.outer {
    border: 1px solid red;
    background-color: #efefef;
    overflow: auto;
}
</style>

<div class="outer">
  <h2>Today's featured picture</h2> 
</div>

25dadb88a1d079554e3e248727961198

After commenting the border: 1px solid red;, I can't scroll inside that div anymore.

f195e79729196006f7f5c770d499d55f

Also, if there's only border and no overflow, I can't scroll either.

I think the issue is related to overflow with border.

cc @emilio

@KiChjang
Copy link
Contributor

My educated guess is that the border is somehow calculated as part of the content, which may erroneously cause the weird scrolling behavior we see there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants