Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / culling / scrolled-within-boxshadow.html
blob845a889252fff03095c291fe2b43a8af32b5925a
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .comp {
6 transform: translateZ(0px);
8 body {
9 margin:0;
10 padding:0;
12 .shadow {
13 position:absolute;
14 left:20px; right:20px;
15 width:500px;
16 height:500px;
17 top:0px; bottom:20px;
18 z-index:120;
19 margin-top:20px;
20 border: 1px solid transparent;
21 -webkit-box-shadow: 0 0 6px #090;
22 background-color: #090;
24 #scroll {
25 overflow-y: hidden; /* scrollable but no scrollbars visible. */
26 width:500px;
27 height: 500px;
29 .scrollContent {
30 width:100%;
31 height: 1000px; /* make the container scrollable */
32 background-color: #0d0;
34 </style>
35 <script type="text/javascript">
36 if (window.testRunner) {
37 testRunner.dumpAsTextWithPixelResults();
38 testRunner.waitUntilDone();
41 window.onload = function() { setTimeout(function() {
42 document.getElementById('scroll').scrollTop += 300;
43 if (window.testRunner) {
44 testRunner.notifyDone();
46 }, 0); };
47 </script>
48 </head>
50 <body>
51 <!-- If culled incorrectly, the top/left edges outside of the shadowed box end up being culled instead of painted/drawn properly. -->
52 <div class="comp shadow">
53 <div id="scroll">
54 <div class="scrollContent">
55 </div>
56 </div>
57 </div>
58 </body>
59 </html>