Skip to content

Unspecified overflow hides item from hit-test #40663

@yezhizhen

Description

@yezhizhen

Describe the bug:
We are not supposed to scroll following page. But we can in Servo.

To Reproduce:
Run following.

<!DOCTYPE html>
<html>
<head>
<style>
  .sibling {
    position: absolute;
    top: 0; left: 0;
    width: 50%;
    height: 100%;
    overflow: auto;
    background: lightblue;
  }
  .sibling p { margin: 20px; }

  .overlay {
    display:block;
    position: absolute; /*fixed also works*/
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 9999;
  }
</style>
</head>
<body>
  <div class="sibling">
    <p>Scrollable content</p>
    <p style="margin-top:1500px">Bottom</p>
  </div>
  <overlay class="overlay"></overlay>
</body>
</html>

Platform:
All.

Metadata

Metadata

Assignees

Labels

A-gfx/displaylistA-layout/2020https://github.com/servo/servo/wiki/Layout-2020C-has-manual-testcase

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions