summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/culling/scrolled-within-boxshadow.html
blob: 845a889252fff03095c291fe2b43a8af32b5925a (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<style>
.comp {
  transform: translateZ(0px);
}
body {
  margin:0;
  padding:0;
}
.shadow {
  position:absolute;
  left:20px; right:20px;
  width:500px;
  height:500px;
  top:0px; bottom:20px;
  z-index:120;
  margin-top:20px;
  border: 1px solid transparent;
  -webkit-box-shadow: 0 0 6px #090;
  background-color: #090;
}
#scroll {
  overflow-y: hidden; /* scrollable but no scrollbars visible. */
  width:500px;
  height: 500px;
}
.scrollContent {
  width:100%;
  height: 1000px; /* make the container scrollable */
  background-color: #0d0;
}
</style>
<script type="text/javascript">
  if (window.testRunner) {
    testRunner.dumpAsTextWithPixelResults();
    testRunner.waitUntilDone();
  }

  window.onload = function() { setTimeout(function() {
    document.getElementById('scroll').scrollTop += 300;
    if (window.testRunner) {
      testRunner.notifyDone();
    }
  }, 0); };
</script>
</head>

<body>
<!-- If culled incorrectly, the top/left edges outside of the shadowed box end up being culled instead of painted/drawn properly. -->
<div class="comp shadow">
  <div id="scroll">
    <div class="scrollContent">
    </div>
  </div>
</div>
</body>
</html>