blob: 3c7e29f197012dfdea43043cc042a721de0813e1 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=true ] -->
<html>
<head>
<style>
#box {
position: absolute;
height: 100px;
width: 100px;
background-color: blue;
clip: rect(10px, 2.38cm, 90px, 10px);
-webkit-transition: clip 1s linear;
}
#box.changed {
clip: rect(0.795cm, 70px, 1.85cm, 30px);
}
</style>
<script src="resources/transition-test-helpers.js"></script>
<script type="text/javascript">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.5, 'box', 'clip', [20, 80, 80, 20], 2],
];
function setupTest()
{
document.getElementById('box').className = 'changed';
}
runTransitionTest(expectedValues, setupTest, usePauseAPI);
</script>
</head>
<body>
<div id="box"></div>
<div id="result"></div>
</body>
</html>