| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 <!-- |  | 
| 2 Copyright 2012 Google Inc. All Rights Reserved. |  | 
| 3 |  | 
| 4 Licensed under the Apache License, Version 2.0 (the "License"); |  | 
| 5 you may not use this file except in compliance with the License. |  | 
| 6 You may obtain a copy of the License at |  | 
| 7 |  | 
| 8     http://www.apache.org/licenses/LICENSE-2.0 |  | 
| 9 |  | 
| 10 Unless required by applicable law or agreed to in writing, software |  | 
| 11 distributed under the License is distributed on an "AS IS" BASIS, |  | 
| 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |  | 
| 13 See the License for the specific language governing permissions and |  | 
| 14 limitations under the License. |  | 
| 15 --> |  | 
| 16 |  | 
| 17 <!DOCTYPE html><meta charset="UTF-8"> |  | 
| 18 <style> |  | 
| 19 .anim { |  | 
| 20   left: 0px; |  | 
| 21   width: 100px; |  | 
| 22   height: 25px; |  | 
| 23   background-color: #FAA; |  | 
| 24   position: relative; |  | 
| 25 } |  | 
| 26 .expect { |  | 
| 27   border-right: 1px solid black; |  | 
| 28 } |  | 
| 29 |  | 
| 30 </style> |  | 
| 31 |  | 
| 32 <div>Right edge of each box should align with black line at end of test.</div> |  | 
| 33 <div style="width: 300px;" class="expect"><div id="a" class="anim"></div></div> |  | 
| 34 <div style="width: 300px;" class="expect"><div id="c" class="anim"></div></div> |  | 
| 35 |  | 
| 36 <script src="../bootstrap.js"></script> |  | 
| 37 <script> |  | 
| 38 "use strict"; |  | 
| 39 |  | 
| 40 var effect = [{left: "100px"}, {left: "200px"}]; |  | 
| 41 var timing = {duration: 1 * 1000, fill: 'forwards'}; |  | 
| 42 |  | 
| 43 // Top level animation. |  | 
| 44 document.timeline.play(new Animation(document.getElementById("a"), |  | 
| 45     effect, timing)); |  | 
| 46 |  | 
| 47 // Animation in group. |  | 
| 48 document.timeline.play(new AnimationGroup([ |  | 
| 49   new Animation(document.getElementById("c"), effect, timing) |  | 
| 50 ], {iterations: 3})); |  | 
| 51 |  | 
| 52 </script> |  | 
| OLD | NEW | 
|---|