mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
absolutely-positioned flows separately when storing overflow. This code dates back to the time when absolutely positioned flows were ignored by all of their ancestors up to the containing block. This hasn't been true for at least a year. Closes #9306. Closes #9309. Is a partial fix for #9308.
28 lines
388 B
HTML
28 lines
388 B
HTML
<!DOCTYPE html>
|
|
<!-- https://github.com/servo/servo/issues/9309 -->
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
.a {
|
|
background: red;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.b {
|
|
background: green;
|
|
width: 40px;
|
|
height: 40px;
|
|
position: absolute;
|
|
right: -40px;
|
|
}
|
|
|
|
</style>
|
|
|
|
<div class="a">
|
|
<div class="b"></div>
|
|
</div>
|