| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 #container { | 3 #container { |
| 4 position: absolute; | 4 position: absolute; |
| 5 top: 0; | 5 top: 0; |
| 6 font-size: 10px; | 6 font-size: 10px; |
| 7 } | 7 } |
| 8 .target { | 8 .target { |
| 9 width: 40px; | 9 width: 40px; |
| 10 height: 40px; | 10 height: 40px; |
| 11 border-top: solid; | 11 border-top: solid; |
| 12 border-left: solid; | 12 border-left: solid; |
| 13 margin-bottom: 20px; | 13 margin-bottom: 20px; |
| 14 } | 14 } |
| 15 </style> | 15 </style> |
| 16 <div id="container"></div> | 16 <div id="container"></div> |
| 17 <div id="footer"></div> |
| 17 <script> | 18 <script> |
| 19 'use strict'; |
| 18 [ | 20 [ |
| 19 'perspective(200px) translate3D(10px, 10px, 10px)', | 21 'perspective(200px) translate3D(10px, 10px, 10px)', |
| 20 'matrix(0, 1, 1, 0, 10, 10)', | 22 'matrix(0, 1, 1, 0, 10, 10)', |
| 21 'matrix3d(' + | 23 'matrix3d(' + |
| 22 '0, 1, 0, 0, ' + | 24 '0, 1, 0, 0, ' + |
| 23 '1, 0, 0, 0, ' + | 25 '1, 0, 0, 0, ' + |
| 24 '0, 0, 1, 0, ' + | 26 '0, 0, 1, 0, ' + |
| 25 '10, 10, 10, 1)', | 27 '10, 10, 10, 1)', |
| 26 'matrix3d(' + | 28 'matrix3d(' + |
| 27 '0.707106781186548, 0.000000000000000, -0.707106781186547, 0.003535533905933
,' + | 29 '0.707106781186548, 0.000000000000000, -0.707106781186547, 0.003535533905933
,' + |
| (...skipping 12 matching lines...) Expand all Loading... |
| 40 container.appendChild(target); | 42 container.appendChild(target); |
| 41 target.animate([ | 43 target.animate([ |
| 42 {transform: transform}, | 44 {transform: transform}, |
| 43 {transform: transform}, | 45 {transform: transform}, |
| 44 ], 1e8); | 46 ], 1e8); |
| 45 }); | 47 }); |
| 46 | 48 |
| 47 if (window.testRunner) | 49 if (window.testRunner) |
| 48 testRunner.waitUntilDone(); | 50 testRunner.waitUntilDone(); |
| 49 | 51 |
| 52 function waitForCompositor() { |
| 53 return footer.animate({opacity: ['1', '1']}, 1).ready; |
| 54 } |
| 55 |
| 50 requestAnimationFrame(() => { | 56 requestAnimationFrame(() => { |
| 51 requestAnimationFrame(() => { | 57 requestAnimationFrame(() => { |
| 52 internals.setZoomFactor(2); | 58 internals.setZoomFactor(2); |
| 53 requestAnimationFrame(() => { | 59 requestAnimationFrame(() => { |
| 54 if (window.testRunner) | 60 waitForCompositor().then(() => { |
| 55 testRunner.notifyDone(); | 61 if (window.testRunner) |
| 62 testRunner.notifyDone(); |
| 63 }); |
| 56 }); | 64 }); |
| 57 }); | 65 }); |
| 58 }); | 66 }); |
| 59 </script> | 67 </script> |
| OLD | NEW |