1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Test of width Animation Using em Units</title>
8 <style type="text/css" media="screen">
20 border: 1px solid black;
21 -webkit-animation-duration: 1s;
22 -webkit-animation-timing-function: linear;
23 -webkit-animation-name: "anim";
25 @-webkit-keyframes "anim" {
30 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
31 <script type="text/javascript" charset="utf-8">
33 const expectedValues = [
34 // [animation-name, time, element-id, property, expected-value, tolerance]
35 ["anim", 0.333, "box", "width", 133, 10],
38 runAnimationTest(expectedValues);
43 This test performs an animation of the width property using 'em' units. It tests whether or not we are properly
44 getting the default font-size.
46 Here is some text. Here is some text. Here is some text. Here is some text. Here is some text. Here is some text.