Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / unanimated-style.html
bloba1c6fe7ebe3172caf595c8e48382bdf5a9702e4a
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <style type="text/css" media="screen">
6 .box {
7 position: absolute;
8 height: 100px;
9 width: 100px;
10 left: 0px;
11 background-color: blue;
14 .box.animating {
15 -webkit-animation: move 1s linear;
16 left: 400px;
19 @-webkit-keyframes move {
20 from {
22 to {
23 left: 500px;
27 #result {
28 margin-top: 130px;
30 </style>
31 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
32 <script type="text/javascript" charset="utf-8">
34 if (window.testRunner)
35 testRunner.waitUntilDone();
37 const expectedValues = [
38 // [time, element-id, property, expected-value, tolerance]
39 [0.5, "test", "left", 450, 8],
42 function setupTest()
44 document.getElementById('test').className = 'animating box';
45 runAnimationTest(expectedValues);
48 window.addEventListener('load', function() {
49 window.setTimeout(setupTest, 0);
50 }, false);
52 </script>
53 </head>
54 <body>
55 <p>Box should animate from left of 400px to 500px.</p>
56 <div id="test" class="box"></div>
57 <div id="result"></div>
58 </body>
59 </html>