Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / compositor-start-event-timing.html
blob4962e8aab7907ef63b9958d8de71b2872bde8dd8
1 <!doctype html>
2 <style>
3 .start {
4 -webkit-animation: anim 1ms;
7 @-webkit-keyframes anim {
8 0% {
9 transform: translate3d(0, 0, 1px);
11 100% {
12 transform: translate3d(0, 0, 0);
15 </style>
16 <body>
17 <script>
18 if (window.testRunner) {
19 testRunner.dumpAsText();
20 testRunner.waitUntilDone();
21 document.body.addEventListener('webkitAnimationEnd', function() {
22 testRunner.notifyDone();
23 });
25 document.body.textContent = 'FAIL (expected if outside the virtual/threaded suite)';
26 requestAnimationFrame(function() {
27 document.body.classList.add('start');
28 document.body.offsetTop;
29 setTimeout(function() {
30 document.body.addEventListener('webkitAnimationStart', function() {
31 document.body.textContent = 'PASS';
32 });
33 }, 0);
34 });
35 </script>