Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / line-height-animation.html
blob2dbdf9e432f09e27a275b3b7481ad590d10b0c89
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>Line Height Test</title>
8 <style type="text/css" media="screen">
9 #box {
10 position: absolute;
11 left: 0;
12 top: 100px;
13 height: 250px;
14 width: 400px;
15 font-family: "arial";
16 font-size: 10px;
17 border: 1px solid black;
18 -webkit-animation-duration: 10s;
19 -webkit-animation-timing-function: linear;
20 -webkit-animation-name: anim;
22 @-webkit-keyframes anim {
23 from { line-height: 1em; }
24 to { line-height: 2em; }
26 </style>
27 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
28 <script type="text/javascript" charset="utf-8">
30 const expectedValues = [
31 // [time, element-id, property, expected-value, tolerance]
32 [0.1, "box", "lineHeight", 10, 1],
35 runAnimationTest(expectedValues);
37 </script>
38 </head>
39 <body>
40 This test performs an animation of the line-height property. It tests whether or not we are properly getting the font-size.
41 <div id="box">
42 Here is some text. Here is some text. Here is some text. Here is some text. Here is some text. Here is some text.
43 Here is some text. Here is some text. Here is some text. Here is some text. Here is some text. Here is some text.
44 </div>
45 <div id="result">
46 </div>
47 </body>
48 </html>