aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/overflow-box-shadow.html
blob: fe1e596333d803d51950fc21c1b5d22a2ec1a9ef (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
29
30
31
32
<!DOCTYPE html>
<!-- Nothing on this page should be scrollable. -->
<style>
  body {
    margin: 0;
  }

  .red {
    background: red;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .green {
    background: green;
    position: absolute;
    width: 500px;
    height: 100%;
    right: 0px;

    width: 500px;
    transform: translateX(250px);
    box-shadow: 0px 0px 200px black;
  }
</style>

<div class="red">
  <div class="green"></div>
</div>