Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / scrollbars / nested-overlay-scrollbars.html
blob1e1199f80414d243d655f309108d749e10713cb2
1 <!DOCTYPE HTML>
2 <style>
3 #outer {
4 position: absolute;
5 z-index: 0;
6 width: 400px;
7 height: 400px;
8 border: 2px solid black;
9 overflow: scroll;
12 #inner {
13 top: 500px;
14 width: 200px;
15 height: 200px;
16 border: 2px solid black;
17 overflow-y: scroll;
18 position: absolute;
21 #scrolled {
22 width: 2000px;
23 height: 9000px;
24 color: papayawhip;
27 #grey {
28 position: absolute;
29 background: grey;
30 width: 100px;
31 height: 800px;
34 #spacer {
35 width: 5000px;
36 height: 1000px;
37 position: absolute;
38 top: 2000px;
40 </style>
41 <script>
42 if (window.internals) {
43 window.internals.settings.setOverlayScrollbarsEnabled(true);
44 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
47 if (window.testRunner)
48 window.testRunner.dumpAsTextWithPixelResults();
50 onload = function() {
51 document.getElementById("outer").scrollTop = 600;
52 if (window.internals && window.testRunner)
53 window.testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document));
55 </script>
56 <div id="outer">
57 <div id="inner">
58 <div id="scrolled">
59 <div id="grey"></div>
60 </div>
61 <div id="spacer"></div>
62 </div>