Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / keyframes-unprefixed-03.html
blob66ccf2f3e586d1a4a2508e04838ed103dc0c4492
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
4 <html lang="en">
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Keyframes test</title>
8 <style type="text/css" media="screen">
9 #box {
10 position: absolute;
11 left: 0;
12 top: 100px;
13 height: 100px;
14 width: 100px;
15 background-color: blue;
16 animation-duration: 1s;
17 animation-timing-function: linear;
18 animation-name: anim;
19 animation-fill-mode: forwards;
22 @keyframes anim {
23 from { left: 200px; }
24 to { left: 300px; }
27 @-webkit-keyframes anim {
28 from { left: 200px; }
29 to { left: 700px; }
32 </style>
33 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
34 <script type="text/javascript" charset="utf-8">
36 const expectedValues = [
37 // [time, element-id, property, expected-value, tolerance]
38 [1, "box", "left", 300, 1],
41 runAnimationTest(expectedValues);
43 </script>
44 </head>
45 <body>
46 This test verifies that the unprefixed @keyframes rule is correctly parsed take precedence over the prefixed keyframe defined after.
47 <div id="box">
48 </div>
49 <div id="result">
50 </div>
51 </body>
52 </html>