3 <style type="text/css" media="screen">
15 background-color: red;
16 -webkit-transform: translate(-2000px, 0px);
17 -webkit-animation-duration: 1s;
18 -webkit-animation-direction: normal;
19 -webkit-animation-timing-function: linear;
20 -webkit-animation-name: "anim";
22 @-webkit-keyframes "anim" {
23 0% { -webkit-transform: translate(100px, 0px); }
24 100% { -webkit-transform: translate(100px, 0px); }
27 color: white; /* hide from pixel results */
30 <script src="resources/animation-test-helpers.js" type="text/javascript"></script>
31 <script type="text/javascript" charset="utf-8">
32 if (window.testRunner) {
33 window.testRunner.dumpAsText(true);
36 const expectedValues = [
37 // [time, element-id, property, expected-value, tolerance]
38 ["anim", 0.5, "box", "webkitTransform", [1, 0, 0, 1, 100, 0], 0.002],
41 const doPixelTest = true;
42 const disablePauseAnimationAPI = false;
43 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
48 <!-- This test checks that a compositing layer is rendered if the layer is originally transformed off the viewport. You should see red boxes. -->
50 <div id="result"></div>