13 background-color: green;
20 background-color: green;
26 <div id=
"scrolled"></div>
27 <div id=
"fixed"></div>
30 function isUsingCompositedScrolling(layer
) {
31 if (layer
.bounds
[1] == 1000)
34 for (var i
= 0; i
< layer
.children
.length
; i
++) {
35 if (isUsingCompositedScrolling(layer
.children
[i
]))
43 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
45 if (window
.testRunner
) {
46 window
.testRunner
.dumpAsText();
47 window
.testRunner
.waitUntilDone();
53 if (window
.internals
) {
54 result
+= "No border radius (should be using composited scrolling): ";
55 if (isUsingCompositedScrolling(JSON
.parse(window
.internals
.layerTreeAsText(document
))))
60 document
.getElementById("scroller").style
.borderRadius
= '5px';
61 requestAnimationFrame(function() {
62 if (window
.internals
) {
63 result
+= "Has border radius (should not be using composited scrolling): ";
64 if (!isUsingCompositedScrolling(JSON
.parse(window
.internals
.layerTreeAsText(document
))))
70 if (window
.testRunner
) {
71 window
.testRunner
.setCustomTextOutput(result
);
72 window
.testRunner
.notifyDone();