aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/overflow-bug-2.html
blob: 1251b6de34cdb516aa78ee9c65489e63658c0122 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!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>