blob: f99e5f4285a73fa8ba4116569812fa096de193cb [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
.target {
position: absolute;
top: 100px;
left: 0;
height: 100px;
width: 100px;
}
#box {
background-color: green;
-webkit-animation-name: move;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: 1;
}
@-webkit-keyframes move {
from {
-webkit-transform: translateX(0) scale(1);
opacity: 0.0;
}
to {
-webkit-transform: translateX(400px) scale(1);
opacity: 1.0;
}
}
#indicator {
left: 200px;
background-color: red;
}
</style>
<script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.5, "box", "webkitTransform.4", 200, 5],
];
var disablePauseAnimationAPI = false;
var doPixelTest = true;
runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
</script>
</head>
<body>
<!-- In the pixel results, the green square should overlay the red square -->
<div class="target" id="indicator"></div>
<div class="target" id="box"></div>
<div id="result"></div>
</body>
</html>