Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / will-change / will-change-contents-suppresses-compositing.html
blobd3f9d67ef3356d03b53ee2c9e0057b5a8f051527
1 <!DOCTYPE html>
2 <style>
3 .shouldNotComposite {
4 width: 30px;
5 height: 30px;
6 margin: 4px;
7 background-color: blue;
10 .positioned {
11 position: relative;
12 left: 40px;
15 #willChangeContents {
16 will-change: contents;
19 #willChangeOpacity {
20 will-change: opacity;
23 #willChangeTransform {
24 will-change: -webkit-transform;
27 #willChangeTop {
28 will-change: top;
31 #willChangeLeft {
32 will-change: left;
35 #animateOpacity {
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; } }
40 </style>
42 <script>
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();
55 onload = function() {
56 document.getElementById('animateOpacity').addEventListener('webkitAnimationIteration', animationEventListener);
58 </script>
59 <div id="willChangeContents">
60 <div id="willChangeOpacity" class="shouldNotComposite"></div>
61 <div>
62 <div id="willChangeLeft" class="positioned shouldNotComposite"></div>
63 </div>
64 <div>
65 <div>
66 <div id="willChangeTransform" class="shouldNotComposite">
67 <div id="willChangeTop" class="positioned shouldNotComposite"></div>
68 </div>
69 </div>
70 </div>
71 <div id="animateOpacity" class="shouldNotComposite"></div>
72 </div>
74 <pre id="layertree"></pre>