-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Unspecified overflow hides item from hit-test #40663
Copy link
Copy link
Open
Labels
A-gfx/displaylistA-layout/2020https://github.com/servo/servo/wiki/Layout-2020https://github.com/servo/servo/wiki/Layout-2020C-has-manual-testcase
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-gfx/displaylistA-layout/2020https://github.com/servo/servo/wiki/Layout-2020https://github.com/servo/servo/wiki/Layout-2020C-has-manual-testcase