6 -webkit-overflow-scrolling: touch;
13 border:
1px solid black;
14 display: inline-block;
16 background-color: #CCCCCC;
20 if (window
.testRunner
)
21 testRunner
.dumpAsText();
24 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
26 function testScrollability(element
)
28 // This will cause scrollable element content layers to be offset by y=50 with respect to their scrolling container.
29 element
.scrollTop
= 50;
34 var divs
= document
.querySelectorAll('body > textarea');
35 for (var i
= 0; i
< divs
.length
; ++i
)
36 testScrollability(divs
[i
]);
38 if (window
.testRunner
)
39 document
.getElementById('results').innerText
= window
.internals
.layerTreeAsText(document
);
41 window
.addEventListener('load', doTest
, false);
47 Lorem ipsum dolor sit amet, consectetur adipisicing elit.
51 Lorem ipsum dolor sit amet, consectetur adipisicing elit.
54 <pre id=
"results">This test requires DRT.
</pre>