| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <style> | 2 <style> |
| 3 div { | 3 div { |
| 4 position: relative; | 4 position: relative; |
| 5 height: 100px; | 5 height: 100px; |
| 6 width: 100px; | 6 width: 100px; |
| 7 background: blue; | 7 background: blue; |
| 8 -webkit-transform: translateZ(0); | 8 transform: translateZ(0); |
| 9 -webkit-animation-direction: alternate; | 9 -webkit-animation-direction: alternate; |
| 10 -webkit-animation-duration: 2s; | 10 -webkit-animation-duration: 2s; |
| 11 -webkit-animation-timing-function: linear; | 11 -webkit-animation-timing-function: linear; |
| 12 -webkit-animation-fill-mode: both; | 12 -webkit-animation-fill-mode: both; |
| 13 } | 13 } |
| 14 | 14 |
| 15 .test0 { | 15 .test0 { |
| 16 -webkit-animation-iteration-count: 0; | 16 -webkit-animation-iteration-count: 0; |
| 17 } | 17 } |
| 18 | 18 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 0% { | 50 0% { |
| 51 left: 0px; | 51 left: 0px; |
| 52 } | 52 } |
| 53 100% { | 53 100% { |
| 54 left: 300px; | 54 left: 300px; |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 | 57 |
| 58 @-webkit-keyframes anim-transform { | 58 @-webkit-keyframes anim-transform { |
| 59 0% { | 59 0% { |
| 60 -webkit-transform: translateX(0px); | 60 transform: translateX(0px); |
| 61 } | 61 } |
| 62 100% { | 62 100% { |
| 63 -webkit-transform: translateX(300px); | 63 transform: translateX(300px); |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 </style> | 66 </style> |
| 67 <body> | 67 <body> |
| 68 <p> | 68 <p> |
| 69 Each section below has two boxes, the top runs on the main thread, the bottom | 69 Each section below has two boxes, the top runs on the main thread, the bottom |
| 70 on the compositor. The animations should be identical but start at different | 70 on the compositor. The animations should be identical but start at different |
| 71 times. | 71 times. |
| 72 </p><p> | 72 </p><p> |
| 73 This test is successful if the boxes are mostly in sync (there might be a small | 73 This test is successful if the boxes are mostly in sync (there might be a small |
| (...skipping 25 matching lines...) Expand all Loading... |
| 99 <br> | 99 <br> |
| 100 <div class='test4 anim-left'></div> | 100 <div class='test4 anim-left'></div> |
| 101 <div class='test4 anim-transform'></div> | 101 <div class='test4 anim-transform'></div> |
| 102 | 102 |
| 103 Iteration count 2.5 (should finish last in the middle) | 103 Iteration count 2.5 (should finish last in the middle) |
| 104 <br> | 104 <br> |
| 105 <div class='test5 anim-left'></div> | 105 <div class='test5 anim-left'></div> |
| 106 <div class='test5 anim-transform'></div> | 106 <div class='test5 anim-transform'></div> |
| 107 </body> | 107 </body> |
| 108 </html> | 108 </html> |
| OLD | NEW |