blob: 903a81e86be1f01e94b2e8ef67d98fb53b431d0f [file] [log] [blame]
<!-- webkit-test-runner [ enableCSSAnimationsAndCSSTransitionsBackedByWebAnimations=true ] -->
<html>
<head>
<style>
div {
position: relative;
left: 100px;
height: 50px;
width: 50px;
background-color: green;
-webkit-transition: left 4s linear 1s;
}
.moved {
left: 200px;
}
</style>
<script src="resources/transition-test-helpers.js"></script>
<script>
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.5, "target", "left", 100, 4],
];
function setupTest()
{
document.getElementById("target").className = "moved";
}
runTransitionTest(expectedValues, setupTest, usePauseAPI);
</script>
</head>
<body>
<h1>Test for transition in delay phase</h1>
<p>This test works only in DumpRenderTree. It uses an API exposed
only there to jump to a particular time in a running transition.
Tests bug <a href="https://bugs.webkit.org/show_bug.cgi?id=59475">59475</a>
</p>
<div id="target"></div>
<div id="result"></div>
</body>
</html>