Servo: Stuck inside a box while scrolling

Created on 6 Aug 2019  路  3Comments  路  Source: servo/servo

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

A-layouuncategorized C-has-manual-testcase

Most helpful comment

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

All 3 comments

I just recorded a gif to show the behavior.

wiki

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ferjm picture ferjm  路  3Comments

pshaughn picture pshaughn  路  3Comments

roberto68 picture roberto68  路  3Comments

kmcallister picture kmcallister  路  4Comments

pyfisch picture pyfisch  路  4Comments