7 background-color: blue;
16 will-change: contents;
23 #willChangeTransform {
24 will-change: -webkit-transform;
36 -webkit-animation: fade-in-out
0.1s linear infinite alternate;
39 @-webkit-keyframes fade-in-out { from { opacity:
0.3; } to { opacity:
0.9; } }
43 if (window
.testRunner
) {
44 testRunner
.dumpAsText();
45 testRunner
.waitUntilDone();
48 function animationEventListener() {
49 if (window
.testRunner
) {
50 document
.getElementById('layertree').innerText
= window
.internals
.layerTreeAsText(document
);
51 testRunner
.notifyDone();
56 document
.getElementById('animateOpacity').addEventListener('webkitAnimationIteration', animationEventListener
);
59 <div id=
"willChangeContents">
60 <div id=
"willChangeOpacity" class=
"shouldNotComposite"></div>
62 <div id=
"willChangeLeft" class=
"positioned shouldNotComposite"></div>
66 <div id=
"willChangeTransform" class=
"shouldNotComposite">
67 <div id=
"willChangeTop" class=
"positioned shouldNotComposite"></div>
71 <div id=
"animateOpacity" class=
"shouldNotComposite"></div>
74 <pre id=
"layertree"></pre>