Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: timelapse
Fetching contributors…

Cannot retrieve contributors at this time

file 43 lines (36 sloc) 1.041 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
<!DOCTYPE html>

<html>
<head>
  <style type="text/css">
    .box {
      height: 100px;
      width: 100px;
      background-color: blue;
    }
    
    #box {
      -webkit-animation: anim 2s linear both;
    }
    
    @-webkit-keyframes anim {
        from { -webkit-transform: rotate(0deg) translate(-100px, 0); }
        to { -webkit-transform: rotate(180deg) translate(300px, 0); }
    }

    #result {
      opacity: 0; /* hide in pixel result */
    }
  </style>
  <script src="resources/animation-test-helpers.js" type="text/javascript"></script>
  <script type="text/javascript">
    const expectedValues = [
      // [time, element-id, property, expected-value, tolerance]
      ["anim", 1, "box", "webkitTransform", [0, 1, -1, 0, 0, 100], 0.002],
    ];
    
    const doPixelTest = true;
    const disablePauseAnimationAPI = false;
    runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
  </script>
</head>
<body>

<div class="box" id="box"></div>
<div id="result"></div>

</body>
</html>
Something went wrong with that request. Please try again.