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">
17 background-color: red;
18 -webkit-transition-property: left;
19 -webkit-transition-duration:
4s;
20 -webkit-transition-timing-function: linear;
27 <script type=
"text/javascript" charset=
"utf-8">
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);
46 <body onload=
"startTest()">
47 <h1>Test for DRT pauseTransitionAtTimeOnElementWithId() API
</h1>