Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / transitions / transition-drt-api.html
blob779a806af44633bc6e7c562dc7c3736302d3e0b1
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 <style>
8 body {
9 margin: 0;
12 div {
13 position: relative;
14 left: 100px;
15 height: 200px;
16 width: 200px;
17 background-color: red;
18 -webkit-transition-property: left;
19 -webkit-transition-duration: 4s;
20 -webkit-transition-timing-function: linear;
23 .moved {
24 left: 200px;
26 </style>
27 <script type="text/javascript" charset="utf-8">
28 function endTest() {
29 if (window.layoutTestController) {
30 if (!layoutTestController.pauseTransitionAtTimeOnElementWithId("left", 1.0, "target"))
31 throw("Transition is not running");
33 layoutTestController.notifyDone();
37 function startTest() {
38 if (window.layoutTestController)
39 layoutTestController.waitUntilDone();
41 document.getElementById("target").className = "moved";
42 window.setTimeout(endTest, 0);
44 </script>
45 </head>
46 <body onload="startTest()">
47 <h1>Test for DRT pauseTransitionAtTimeOnElementWithId() API</h1>
49 <div id="target">
50 </div>
52 </body>
53 </html>