summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/overflow-clip-content-visual-overflow-ref.html
blob: 378da736ecfcec921fa257273f7369cb253e3b81 (plain)
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
33
34
35
36
<!doctype html>
<meta charset="utf-8">
<title>Overflow: verifies content visual overflow is shown</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#valdef-overflow-clip">
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
<style>
  body {
    margin: 0
  }

  .shadow {
    width: 100px;
    height: 100px;
    will-change: transform;
    background: black;
    box-shadow: 10px 50px 5px red;
  }

  .cover {
    width: 200px;
    height: 200px;
    background: white;
    position: absolute;
  }

  .spacer {
    width: 100px;
    height: 150px;
  }
</style>
<div class="shadow"></div>
<div class="cover" style="left: 100px; top: 0"></div>
<div class="spacer"></div>
<div class="shadow"></div>
<div class="cover" style="top: 350px"></div>
</script>