13 background-color: blue;
20 background-color: green;
27 <div id=
"fixed"></div>
31 function isUsingCompositedScrolling(layer
) {
32 if (layer
.bounds
[1] == 1000)
35 for (var i
= 0; i
< layer
.children
.length
; i
++) {
36 if (isUsingCompositedScrolling(layer
.children
[i
]))
44 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
46 if (window
.testRunner
) {
47 window
.testRunner
.dumpAsText();
48 window
.testRunner
.waitUntilDone();
54 if (window
.internals
) {
55 result
+= "No clip path descendant (should be using composited scrolling): ";
56 if (isUsingCompositedScrolling(JSON
.parse(window
.internals
.layerTreeAsText(document
))))
61 document
.getElementById("inner").style
.webkitClipPath
= "polygon(40px 550px,432px 302px,409px 237px,46px 156px)";
62 requestAnimationFrame(function() {
63 if (window
.internals
) {
64 result
+= "Has clip path descendant (should not be using composited scrolling): ";
65 if (!isUsingCompositedScrolling(JSON
.parse(window
.internals
.layerTreeAsText(document
))))
71 if (window
.testRunner
) {
72 window
.testRunner
.setCustomTextOutput(result
);
73 window
.testRunner
.notifyDone();